parent
ec07e4f8be
commit
0ecf8661eb
@ -86,8 +86,7 @@ def get(typ, args=None):
|
|||||||
locations.
|
locations.
|
||||||
"""
|
"""
|
||||||
overridden, path = _from_args(typ, args)
|
overridden, path = _from_args(typ, args)
|
||||||
if overridden:
|
if not overridden:
|
||||||
return path
|
|
||||||
path = _writable_location(typ)
|
path = _writable_location(typ)
|
||||||
appname = QCoreApplication.instance().applicationName()
|
appname = QCoreApplication.instance().applicationName()
|
||||||
if (typ == QStandardPaths.ConfigLocation and
|
if (typ == QStandardPaths.ConfigLocation and
|
||||||
@ -103,6 +102,8 @@ 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):
|
||||||
|
os.makedirs(path, 0o700)
|
||||||
return path
|
return path
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user