Last active
July 14, 2020 18:43
-
-
Save moonburnt/275c67519d055f01afebf9a72fcc9d5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# filepath constants | |
HOME_DIR = expanduser("~") | |
if platform.system() == "Linux": | |
#this can actually work under windows too, with some adjustments | |
#os-specific paths | |
DATA_PATH = HOME_DIR+"/.local/share/gogrepo/" | |
CONFIG_PATH = HOME_DIR+"/.config/gogrepo/" | |
TEMP_PATH = HOME_DIR+"/.cache/gogrepo/" | |
#general stuff | |
GAME_STORAGE_DIR = DATA_PATH | |
COOKIES_FILENAME = CONFIG_PATH+"/gog-cookies.dat" | |
NETSCAPE_COOKIES_FILENAME = CONFIG_PATH+"/cookies.txt" | |
NETSCAPE_COOKIES_TMP_FILENAME = TEMP_PATH+"/cookies.txt.tmp" | |
MANIFEST_FILENAME = CONFIG_PATH+"/gog-manifest.dat" | |
RESUME_MANIFEST_FILENAME = TEMP_PATH+"/gog-resume-manifest.dat" | |
ORPHAN_DIR_NAME = DATA_PATH+"/!orphaned" | |
DOWNLOADING_DIR_NAME = TEMP_PATH+"/!downloading" | |
else: | |
GAME_STORAGE_DIR = r'.' | |
COOKIES_FILENAME = r'gog-cookies.dat' | |
NETSCAPE_COOKIES_FILENAME = r'cookies.txt' | |
NETSCAPE_COOKIES_TMP_FILENAME = r'cookies.txt.tmp' | |
MANIFEST_FILENAME = r'gog-manifest.dat' | |
RESUME_MANIFEST_FILENAME = r'gog-resume-manifest.dat' | |
ORPHAN_DIR_NAME = '!orphaned' | |
DOWNLOADING_DIR_NAME = '!downloading' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment