diff --git a/setup.py b/setup.py index ed29893d..b62249f3 100644 --- a/setup.py +++ b/setup.py @@ -63,6 +63,6 @@ setup( entry_points={ 'console_scripts': [ 'thingsboard-gateway = thingsboard_gateway.tb_gateway:daemon', - 'tb-gateway-configurator = thingsboard_gateway.gateway.setup_wizard:main' + 'tb-gateway-configurator = thingsboard_gateway.gateway.configuration_wizard:configure' ] }) diff --git a/thingsboard_gateway/gateway/setup_wizard.py b/thingsboard_gateway/gateway/configuration_wizard.py similarity index 99% rename from thingsboard_gateway/gateway/setup_wizard.py rename to thingsboard_gateway/gateway/configuration_wizard.py index 8277cc74..41353373 100644 --- a/thingsboard_gateway/gateway/setup_wizard.py +++ b/thingsboard_gateway/gateway/configuration_wizard.py @@ -98,7 +98,7 @@ def read_config_file() -> {str: str}: return config_dict -def main(): +def configure(): try: default_config = read_config_file() @@ -366,4 +366,4 @@ def main(): raise SystemExit if __name__ == '__main__': - main() + configure()