net/fill_config.py: refactor print 'using config...'

Put each line in a separate, aligned print statement and use f-strings
(Python 3.6 feature, even debian oldstable has > 3.6 by now).
This is in preparation to add a new line about the original config in
the next patch.

Change-Id: Iad39a7889c107ceb8c16325bb545cb426eb9b6e2
This commit is contained in:
Oliver Smith 2022-02-25 11:42:42 +01:00
parent f34a9443eb
commit 02f2254b23
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ local_config_file = os.path.realpath(local_config_file)
tmpl_dir = os.path.realpath(tmpl_dir)
net_dir = os.path.realpath(".")
print('using config file %r\non templates %r\nwith NET_DIR %r' % (local_config_file, tmpl_dir, net_dir))
print(f'using config file: {local_config_file}')
print(f'on templates: {tmpl_dir}')
print(f'with NET_DIR: {net_dir}')
with open(LAST_LOCAL_CONFIG_FILE, 'w') as last_file:
last_file.write(local_config_file)