summaryrefslogtreecommitdiff
path: root/sbhs_server/pages/management/commands/arm.diff
diff options
context:
space:
mode:
Diffstat (limited to 'sbhs_server/pages/management/commands/arm.diff')
-rw-r--r--sbhs_server/pages/management/commands/arm.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/sbhs_server/pages/management/commands/arm.diff b/sbhs_server/pages/management/commands/arm.diff
new file mode 100644
index 0000000..868bec1
--- /dev/null
+++ b/sbhs_server/pages/management/commands/arm.diff
@@ -0,0 +1,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")
+