mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-02 11:41:34 +00:00
7717890b5f
* Define a separate config directory * Create config dir when installing * Fix typo * Introduce delete_file method for deleting non-image files * Add docstring
18 lines
531 B
Python
18 lines
531 B
Python
from os import getenv, getcwd
|
|
|
|
base_dir = getenv("BASE_DIR", "/home/pi/images/")
|
|
cfg_dir = getenv("HOME", "/home/pi/") + ".config/rascsi/"
|
|
home_dir = getcwd()
|
|
|
|
DEFAULT_CONFIG = "default.json"
|
|
MAX_FILE_SIZE = getenv("MAX_FILE_SIZE", 1024 * 1024 * 1024 * 4) # 4gb
|
|
|
|
ARCHIVE_FILE_SUFFIX = ("zip",)
|
|
|
|
# File containing canonical drive properties
|
|
DRIVE_PROPERTIES_FILE = home_dir + "/drive_properties.json"
|
|
# File ending used for drive properties files
|
|
PROPERTIES_SUFFIX = "properties"
|
|
|
|
REMOVABLE_DEVICE_TYPES = ("SCCD", "SCRM", "SCMO")
|