Skip to content
Snippets Groups Projects
Verified Commit dd6a072d authored by TheJoeCoder's avatar TheJoeCoder
Browse files

Fix destination copy on Python script

parent 1ff7c16c
Branches
No related tags found
No related merge requests found
Pipeline #176 passed
import shutil
import os
if os.path.exists("public"):
shutil.rmtree("public")
os.mkdir("public")
shutil.copyfile("templates/index.html", "public/index.html")
shutil.copy("static/*", "public/")
shutil.copytree("static", "public/", dirs_exist_ok=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment