|
@@ -387,6 +387,7 @@ def main():
|
|
token = args['token']
|
|
token = args['token']
|
|
|
|
|
|
# If host and port are not provided from command-line, try to import them
|
|
# If host and port are not provided from command-line, try to import them
|
|
|
|
+ sys.path.append(os.path.abspath('.'))
|
|
if host is None:
|
|
if host is None:
|
|
try:
|
|
try:
|
|
from config import host
|
|
from config import host
|
|
@@ -501,9 +502,9 @@ def main():
|
|
with open('config.py', 'a') as configuration_file:
|
|
with open('config.py', 'a') as configuration_file:
|
|
configuration_file.writelines(
|
|
configuration_file.writelines(
|
|
[
|
|
[
|
|
- f'{name} = "{value}"'
|
|
|
|
|
|
+ f'{name} = "{value}"\n'
|
|
if type(value) is str
|
|
if type(value) is str
|
|
- else f'{name} = {value}'
|
|
|
|
|
|
+ else f'{name} = {value}\n'
|
|
for name, value in new_settings.items()
|
|
for name, value in new_settings.items()
|
|
]
|
|
]
|
|
)
|
|
)
|