1
0
Fork 0
mirror of synced 2024-07-01 04:30:20 +12:00
Rare/rare/__init__.py

18 lines
583 B
Python
Raw Normal View History

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
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")
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)