forked from platypush/platypush
FIX: We shouldn't expand cfgfile
if it's empty.
This commit is contained in:
parent
bdbe263905
commit
453b6becae
1 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,9 @@ class Config:
|
|||
if cfgfile is None:
|
||||
cfgfile = self._get_default_cfgfile()
|
||||
|
||||
cfgfile = os.path.abspath(os.path.expanduser(cfgfile))
|
||||
if cfgfile:
|
||||
cfgfile = os.path.abspath(os.path.expanduser(cfgfile))
|
||||
|
||||
if cfgfile is None or not os.path.exists(cfgfile):
|
||||
cfgfile = self._create_default_config(cfgfile)
|
||||
|
||||
|
|
Loading…
Reference in a new issue