mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-18 10:30:32 +00:00
089dc302e5
* python client library clean branch for PR. #455 * removed superfluous file. #455 * removed one more superfluous file. #455 * README.md, .pylintrc and pylint based fixes. #455 * updated wrt. to the review comments. #455 * removed pylint documentation duplication. #455
27 lines
737 B
Python
27 lines
737 B
Python
"""
|
|
Constant definitions used by other modules
|
|
"""
|
|
|
|
from os import getenv, getcwd
|
|
import rascsi.common_settings
|
|
|
|
WEB_DIR = getcwd()
|
|
HOME_DIR = "/".join(WEB_DIR.split("/")[0:3])
|
|
|
|
AFP_DIR = f"{HOME_DIR}/afpshare"
|
|
|
|
MAX_FILE_SIZE = getenv("MAX_FILE_SIZE", str(1024 * 1024 * 1024 * 4)) # 4gb
|
|
|
|
ARCHIVE_FILE_SUFFIX = "zip"
|
|
|
|
# The file name of the default config file that loads when rascsi-web starts
|
|
DEFAULT_CONFIG = f"default.{rascsi.common_settings.CONFIG_FILE_SUFFIX}"
|
|
# File containing canonical drive properties
|
|
DRIVE_PROPERTIES_FILE = WEB_DIR + "/drive_properties.json"
|
|
|
|
# The user group that is used for webapp authentication
|
|
AUTH_GROUP = "rascsi"
|
|
|
|
# The language locales supported by RaSCSI
|
|
LANGUAGES = ["en", "de", "sv", "fr", "es"]
|