2021-02-10 23:48:25 +13:00
|
|
|
import os
|
2021-02-27 07:28:54 +13:00
|
|
|
|
2022-01-19 09:50:53 +13:00
|
|
|
__version__ = "1.8.7"
|
2021-08-23 08:43:08 +12:00
|
|
|
|
2022-02-06 04:23:34 +13:00
|
|
|
from PyQt5.QtCore import QStandardPaths
|
2021-08-14 07:24:03 +12:00
|
|
|
|
2022-02-06 04:23:34 +13:00
|
|
|
code_name = "Stellula Kakopo"
|
2021-08-17 09:08:15 +12:00
|
|
|
|
2022-02-06 04:23:34 +13:00
|
|
|
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")
|
2021-08-17 09:08:15 +12:00
|
|
|
image_dir = os.path.join(data_dir, "images")
|
2022-02-06 04:03:21 +13:00
|
|
|
tmp_dir = os.path.join(cache_dir, "tmp")
|
2022-02-06 04:23:34 +13:00
|
|
|
|
|
|
|
for path in (resources_path, data_dir, cache_dir, image_dir, tmp_dir):
|
|
|
|
if not os.path.exists(path):
|
|
|
|
os.makedirs(path)
|