1
0
Fork 0
mirror of synced 2024-06-02 18:54:41 +12:00
Rare/rare/__init__.py
2022-02-05 16:23:34 +01:00

18 lines
583 B
Python

import os
__version__ = "1.8.7"
from PyQt5.QtCore import QStandardPaths
code_name = "Stellula Kakopo"
resources_path = os.path.join(os.path.dirname(__file__), "resources")
data_dir = os.path.join(QStandardPaths.writableLocation(QStandardPaths.DataLocation), "rare")
cache_dir = os.path.join(QStandardPaths.writableLocation(QStandardPaths.CacheLocation), "rare")
image_dir = os.path.join(data_dir, "images")
tmp_dir = os.path.join(cache_dir, "tmp")
for path in (resources_path, data_dir, cache_dir, image_dir, tmp_dir):
if not os.path.exists(path):
os.makedirs(path)