mirror of
https://github.com/thingsboard/thingsboard-gateway
synced 2025-10-26 22:31:42 +08:00
Refactoring
This commit is contained in:
2
setup.py
2
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'
|
||||
]
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user