mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-10 17:29:35 +00:00
b3bdd07fa7
* Use the comparison operator that Python3 likes. * Add SUPPORT_DEVICE_TYPES category, and add Host Service to it. * Add webapp UI for attaching a support device. * Make the OLED screen aware of the support device type. * Tweak test to make it clear that this is experimental functionality. * Tweak device type names
24 lines
672 B
Python
24 lines
672 B
Python
"""
|
|
Module for general settings used in the rascsi module
|
|
"""
|
|
|
|
from os import getcwd
|
|
|
|
WORK_DIR = getcwd()
|
|
|
|
REMOVABLE_DEVICE_TYPES = ("SCCD", "SCRM", "SCMO")
|
|
NETWORK_DEVICE_TYPES = ("SCDP", "SCBR")
|
|
SUPPORT_DEVICE_TYPES = ("SCHS", )
|
|
|
|
# There may be a more elegant way to get the HOME dir of the user that installed RaSCSI
|
|
HOME_DIR = "/".join(WORK_DIR.split("/")[0:3])
|
|
CFG_DIR = f"{HOME_DIR}/.config/rascsi"
|
|
CONFIG_FILE_SUFFIX = "json"
|
|
|
|
# File ending used for drive properties files
|
|
PROPERTIES_SUFFIX = "properties"
|
|
|
|
# The RESERVATIONS list is used to keep track of the reserved ID memos.
|
|
# Initialize with a list of 8 empty strings.
|
|
RESERVATIONS = ["" for x in range(0, 8)]
|