diff --git a/platypush/config/__init__.py b/platypush/config/__init__.py index 4e6e1ee53..82c52eac3 100644 --- a/platypush/config/__init__.py +++ b/platypush/config/__init__.py @@ -104,7 +104,7 @@ class Config: if cfgfile is None: cfgfile = self._get_default_cfgfile() - if cfgfile is None: + if cfgfile is None or not os.path.exists(cfgfile): cfgfile = self._create_default_config() self._cfgfile = os.path.abspath(os.path.expanduser(cfgfile))