blob: 868bec1f2e3b36bc59eaf992742bae96d9d5f7df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- a/sbhs_server/pages/management/commands/zip_client.py
+++ b/sbhs_server/pages/management/commands/zip_client.py
@@ -33,6 +33,10 @@ class Command(BaseCommand):
run_file_dirpath = os.path.join(dirpath, "run_file")
os.mkdir(tmp_dirpath)
+ for root, dirs, files in os.walk(dirpath):
+ for f in files:
+ shutil.copy(os.path.join(dirpath, f), os.path.join(tmp_dirpath, f))
+
distutils.dir_util.copy_tree(scilab_codes_dirpath, tmp_dirpath)
try:
shutil.rmtree(tmp_dirpath + "/" + scilab_codes_dirname + "/.git")
|