From 15769d3f95967758ebdc1f58f4a108464f0ad4cb Mon Sep 17 00:00:00 2001 From: Trevor Taubitz Date: Fri, 30 Dec 2016 11:04:03 -0500 Subject: [PATCH] Fixed release compilation code --- build_dist.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/build_dist.py b/build_dist.py index c434b0c..3da9e17 100644 --- a/build_dist.py +++ b/build_dist.py @@ -119,13 +119,16 @@ def gzip_dir(path_to_dist_dir, gzip_filename_base): # Prepare all files for release print("Preparing release") + release_dir = os.path.join(os.getcwd(), "release") + print(release_dir) + os.mkdir(release_dir) for root, dirs, files in os.walk(top=path_to_dist): - release_dir = os.path.join(os.getcwd(), "release") - if not os.path.exists(release_dir): - os.mkdir(release_dir) for file in files: - shutil.move(os.path.join(root, file), release_dir) - shutil.move(release_dir, path_to_dist) + file_path = os.path.join(root, file) + print("Copying " + file_path + " into releases folder") + shutil.copy(file_path, release_dir) + + shutil.move(release_dir, path_to_dist) print("Finished") # Add dist files to git