diff options
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -239,9 +239,7 @@ def parse(entry_module: Optional[str]) -> Dict[str, Any]: if loadfile is not None: if saw_other_args: - msg = ( - f'Augmenting commandline arguments with those from {loadfile}.' - ) + msg = f'Augmenting commandline arguments with those from {loadfile}.' print(msg, file=sys.stderr) saved_messages.append(msg) if not os.path.exists(loadfile): @@ -252,9 +250,7 @@ def parse(entry_module: Optional[str]) -> Dict[str, Any]: sys.exit(-1) with open(loadfile, 'r') as rf: newargs = rf.readlines() - newargs = [ - arg.strip('\n') for arg in newargs if 'config_savefile' not in arg - ] + newargs = [arg.strip('\n') for arg in newargs if 'config_savefile' not in arg] sys.argv += newargs # Parse (possibly augmented, possibly completely overwritten) |
