setversion, http_host

This commit is contained in:
Zsolt Ero
2024-06-24 17:56:05 +02:00
parent 11a9879f18
commit 37afbbb902
8 changed files with 106 additions and 40 deletions

View File

@@ -0,0 +1,16 @@
from pathlib import Path
if Path('/data/ofm/config').exists():
OFM_CONFIG_DIR = Path('/data/ofm/config')
else:
OFM_CONFIG_DIR = Path(__file__).parent.parent.parent.parent / 'config'
assert OFM_CONFIG_DIR.exists()
RCLONE_CONF = OFM_CONFIG_DIR / 'rclone.conf'
if Path('/opt/homebrew/bin/rclone').exists():
RCLONE_BIN = '/opt/homebrew/bin/rclone'
else:
RCLONE_BIN = 'rclone'