mirror of
https://github.com/akuker/RASCSI.git
synced 2024-05-28 09:41:33 +00:00
315ef9f248
* Update config for black and flake8 * Auto-format Python sources with black * Fix issues reported by flake8 * Exclude protobuf files from black * Address formatting feedback
24 lines
717 B
Python
24 lines
717 B
Python
"""
|
|
Module for general settings used in the rascsi module
|
|
"""
|
|
|
|
from os import getcwd
|
|
|
|
# There may be a more elegant way to get the HOME dir of the user that installed RaSCSI
|
|
HOME_DIR = "/".join(getcwd().split("/")[0:3])
|
|
CFG_DIR = f"{HOME_DIR}/.config/rascsi"
|
|
CONFIG_FILE_SUFFIX = "json"
|
|
|
|
# File ending used for drive properties files
|
|
PROPERTIES_SUFFIX = "properties"
|
|
|
|
# Supported archive file suffixes
|
|
ARCHIVE_FILE_SUFFIXES = ["zip", "sit", "tar", "gz", "7z"]
|
|
|
|
# The RESERVATIONS list is used to keep track of the reserved ID memos.
|
|
# Initialize with a list of 8 empty strings.
|
|
RESERVATIONS = ["" for _ in range(0, 8)]
|
|
|
|
# Standard error message for shell commands
|
|
SHELL_ERROR = 'Shell command: "%s" led to error: %s'
|