mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-21 04:05:26 -04:00
Odysseus v1.0
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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='')
|
||||
Reference in New Issue
Block a user