diff options
author | ttt | 2017-05-13 00:29:47 +0530 |
---|---|---|
committer | ttt | 2017-05-13 00:29:47 +0530 |
commit | 4336f5f06f61de30ae3fa54650fce63a9d5ef5be (patch) | |
tree | 23b4ee9b8e8f24bf732acf2f7ad22ed50cdd5670 /sbhs_server/pages/management/commands/arm.diff | |
download | SBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.tar.gz SBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.tar.bz2 SBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.zip |
added all server files
Diffstat (limited to 'sbhs_server/pages/management/commands/arm.diff')
-rw-r--r-- | sbhs_server/pages/management/commands/arm.diff | 14 |
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") + |