Don't create resources folder in paths.py
This commit is contained in:
parent
57f10b7ec0
commit
5b8bb411ee
1 changed files with 2 additions and 3 deletions
|
@ -6,13 +6,12 @@ code_name = "Stellula Kakopo"
|
||||||
|
|
||||||
from PyQt5.QtCore import QStandardPaths
|
from PyQt5.QtCore import QStandardPaths
|
||||||
|
|
||||||
|
resources_path = os.path.join(os.path.dirname(__file__), "../resources/")
|
||||||
resources_path = os.path.join(os.path.dirname(__file__), "../resources")
|
|
||||||
data_dir = os.path.join(QStandardPaths.writableLocation(QStandardPaths.DataLocation), "rare")
|
data_dir = os.path.join(QStandardPaths.writableLocation(QStandardPaths.DataLocation), "rare")
|
||||||
cache_dir = os.path.join(QStandardPaths.writableLocation(QStandardPaths.CacheLocation), "rare")
|
cache_dir = os.path.join(QStandardPaths.writableLocation(QStandardPaths.CacheLocation), "rare")
|
||||||
image_dir = os.path.join(data_dir, "images")
|
image_dir = os.path.join(data_dir, "images")
|
||||||
tmp_dir = os.path.join(cache_dir, "tmp")
|
tmp_dir = os.path.join(cache_dir, "tmp")
|
||||||
|
|
||||||
for path in (resources_path, data_dir, cache_dir, image_dir, tmp_dir):
|
for path in (data_dir, cache_dir, image_dir, tmp_dir):
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
os.makedirs(path)
|
os.makedirs(path)
|
||||||
|
|
Loading…
Reference in a new issue