From 913f04d26e0ac834f599e0c5997f49da2a7940a5 Mon Sep 17 00:00:00 2001 From: Torrin Leonard <82110564+torrinworx@users.noreply.github.com> Date: Tue, 26 Oct 2021 22:40:27 -0400 Subject: [PATCH] Refactoring conFig file for windows and mac compatibility --- conFig.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/conFig.py b/conFig.py index 3a866c2..da693ee 100644 --- a/conFig.py +++ b/conFig.py @@ -1,19 +1,22 @@ import platform -mac = "Darwin" -windows = "Windows" -slash = "" +mac = 'Darwin' +windows = 'Windows' +slash = '' +save_path = None +save_path_mac = '/Users/torrinleonard/Desktop/Blend_My_NFTs' +save_path_windows = r'' if platform.system() == mac: - slash = "/" + save_path = save_path_mac # The path to the "Blender_Image_Generator" folder + slash = '/' elif platform.system() == windows: + save_path = save_path_windows slash = '\\' nftsPerBatch = 5 # Number of NFTs per batch renderBatch = 1 # The number of the batch to render in PNG-Generator -imageName = "ThisCozyPlace" # The name of the NFT image produces by PNG-Generator +imageName = "ThisCozyPlace_" # The name of the NFT image produces by PNG-Generator - -save_path = '/Users/torrinleonard/Desktop/Blend_My_NFTs' # The path to the "Blender_Image_Generator" folder batch_path = save_path + slash + 'Batch_Json_files' images_path = save_path + slash + 'Images from PNG Generator' \ No newline at end of file