From 0e60aa6524fbb4ba82afb14163000117e0128160 Mon Sep 17 00:00:00 2001 From: matgad Date: Tue, 6 Sep 2016 15:37:44 +0200 Subject: [PATCH] Update template.py core.setdir discarded in os.path.join due to aboslute path as second argument --- src/html/templates/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/templates/template.py b/src/html/templates/template.py index ce546fc89..5fc1c29c8 100755 --- a/src/html/templates/template.py +++ b/src/html/templates/template.py @@ -77,7 +77,7 @@ if not os.path.isdir(os.path.join(core.setdir, "web_clone")): os.makedirs(os.path.join(core.setdir, "web_clone/")) if os.path.isfile(os.path.join(core.setdir, "web_clone/index.html")): os.remove(os.path.join(core.setdir, "web_clone/index.html")) -shutil.copyfile("src/html/index.template", os.path.join(core.setdir, "/web_clone/index.html")) +shutil.copyfile("src/html/index.template", os.path.join(core.setdir, "web_clone/index.html")) with open(os.path.join(core.setdir, "site.template"), 'w') as filewrite: filewrite.write("TEMPLATE=SELF\nURL={0}".format(url))