Refactoring conFig file for windows and mac compatibility

pull/3/head
Torrin Leonard 2021-10-26 22:40:27 -04:00
rodzic 8b97ee8bba
commit 913f04d26e
1 zmienionych plików z 10 dodań i 7 usunięć

Wyświetl plik

@ -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'