Skip to content
Snippets Groups Projects
Commit c0b2b96c authored by Jonas Leder's avatar Jonas Leder
Browse files

fixed compile

parent f757d86e
No related branches found
No related tags found
No related merge requests found
......@@ -23,11 +23,7 @@ RUN apt clean
RUN python3 -m pip install -r requirements.txt
#Compile the Python files (for more speed) and replace the original files
RUN python -m compileall .
RUN rm main.py import.py export.py
RUN mv __pycache__/main.* main.py
RUN mv __pycache__/import.* import.py
RUN mv __pycache__/export.* export.py
RUN python3 compile.py
#Make a builddate file, used if you want to see the builddate in the webui
RUN date > builddate.txt
......
import compileall
from os import listdir
from shutil import move
compileall.compile_dir(".", force=1)
for files in listdir("__pycache__"):
newName = files.split(".")[0]
move("__pycache__/" + files, newName + ".py")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment