Fix starting without config.

This commit is contained in:
Florian Bruhin 2014-12-11 22:08:43 +01:00
parent 808cd29461
commit cba120ac76

View File

@ -102,7 +102,7 @@ def get(typ, args=None):
QStandardPaths.ConfigLocation) QStandardPaths.ConfigLocation)
if data_path == config_path: if data_path == config_path:
path = os.path.join(path, 'data') path = os.path.join(path, 'data')
if not os.path.exists(path): if path is not None and not os.path.exists(path):
os.makedirs(path, 0o700) os.makedirs(path, 0o700)
return path return path