Files
openfreemap/modules/loadbalancer/loadbalancer_lib/__init__.py
2024-08-29 16:33:59 +02:00

10 lines
224 B
Python

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()