From 29852cf0810a8674401d4c730cea112de6156f16 Mon Sep 17 00:00:00 2001 From: Mostafa Kamal Date: Mon, 15 Jan 2024 20:41:49 +0600 Subject: [PATCH] add run method in run.py (#34241) --- .../source-python/source_{{snakeCase name}}/run.py.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/connector-templates/source-python/source_{{snakeCase name}}/run.py.hbs b/airbyte-integrations/connector-templates/source-python/source_{{snakeCase name}}/run.py.hbs index 2ac28a7c8471f..25c9400301f9b 100644 --- a/airbyte-integrations/connector-templates/source-python/source_{{snakeCase name}}/run.py.hbs +++ b/airbyte-integrations/connector-templates/source-python/source_{{snakeCase name}}/run.py.hbs @@ -8,6 +8,6 @@ import sys from airbyte_cdk.entrypoint import launch from .source import Source{{properCase name}} -if __name__ == "__main__": +def run(): source = Source{{properCase name}}() launch(source, sys.argv[1:])