config/default.py holds defaults using ~/lib/data/tfl (expanduser, so safe to commit). app.py loads it then overlays config/local.py if present, pushing paths into cache and circle_line modules. config/local.py is gitignored for machine-specific absolute paths (e.g. on the server where www-data runs). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
356 B
Python
10 lines
356 B
Python
import os
|
|
|
|
# Directory containing TfL reference data (TransXChange XML files etc.)
|
|
TFL_DATA_DIR = os.path.expanduser('~/lib/data/tfl')
|
|
|
|
# Directory for caching scraped train times
|
|
CACHE_DIR = os.path.expanduser('~/lib/data/tfl/cache')
|
|
|
|
# TransXChange timetable file for the Circle Line
|
|
CIRCLE_LINE_XML = os.path.join(TFL_DATA_DIR, 'output_txc_01CIR_.xml')
|