修改静态文件打包过程中的 bug

This commit is contained in:
virusdefender
2015-09-15 09:36:24 +08:00
parent c648e0008f
commit 5066a39312
2 changed files with 9 additions and 4 deletions

View File

@@ -70,6 +70,9 @@
appDir: "../",
dir: "../../release/",
modules: [
{
name: "bootstrap",
},
{
name: "addProblem_0_pack"
},

View File

@@ -9,9 +9,11 @@ template_release_path = "template/release/"
static_src_path = "static/src/"
static_release_path = "static/release/"
try:
# 删除模板的 release 文件夹
shutil.rmtree(template_release_path)
except Exception:
pass
# 复制一份模板文件夹到 release
shutil.copytree(template_src_path, template_release_path)