Queer European MD passionate about IT
浏览代码

Newline after each variable

Davte 5 年之前
父节点
当前提交
e203e35f8e
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/client.py

+ 3 - 2
src/client.py

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