pupygen: Handle case when there is no network.conf yet

This commit is contained in:
Oleksii Shevchuk 2018-10-07 13:20:42 +03:00
parent 9bf52f304c
commit 1af28cb2fd
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ def get_raw_conf(display, conf, obfuscate=False, verbose=False):
'network.transports.{}'.format(transport) for transport in transports_list
), path=ROOT),
'import sys',
'sys.modules.pop("network.conf")',
'sys.modules.pop("network.conf", "")',
'import network.conf',
'LAUNCHER={}'.format(repr(conf['launcher'])),
'LAUNCHER_ARGS={}'.format(repr(conf['launcher_args'])),