Fix starting without config.
This commit is contained in:
parent
808cd29461
commit
cba120ac76
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user