forked from platypush/platypush
Create the default configuration file even if --config is supplied but the file doesn't exist.
This commit is contained in:
parent
afa4de5673
commit
657b2cc87d
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class Config:
|
||||||
if cfgfile is None:
|
if cfgfile is None:
|
||||||
cfgfile = self._get_default_cfgfile()
|
cfgfile = self._get_default_cfgfile()
|
||||||
|
|
||||||
if cfgfile is None:
|
if cfgfile is None or not os.path.exists(cfgfile):
|
||||||
cfgfile = self._create_default_config()
|
cfgfile = self._create_default_config()
|
||||||
|
|
||||||
self._cfgfile = os.path.abspath(os.path.expanduser(cfgfile))
|
self._cfgfile = os.path.abspath(os.path.expanduser(cfgfile))
|
||||||
|
|
Loading…
Reference in a new issue