Files
odysseus/scripts/fix_paths.py
pewdiepie-archdaemon e5c99a5eee Odysseus v1.0
2026-05-31 23:58:26 +09:00

10 lines
280 B
Python

import fileinput
import sys
# Read app.py and replace the BASE_DIR line
for line in fileinput.input('app.py', inplace=True):
if line.startswith('BASE_DIR = '):
print('BASE_DIR = os.path.dirname(os.path.abspath(__file__)) + "/"')
else:
print(line, end='')