From e203e35f8ed77b62e5b2c5980bd93ac0bae2d485 Mon Sep 17 00:00:00 2001 From: Davte Date: Sun, 12 Apr 2020 11:43:18 +0200 Subject: [PATCH] Newline after each variable --- src/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client.py b/src/client.py index c4fcb7c..7cedb6f 100644 --- a/src/client.py +++ b/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() ] )