kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
Refactoring conFig file for windows and mac compatibility
rodzic
8b97ee8bba
commit
913f04d26e
17
conFig.py
17
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'
|
Ładowanie…
Reference in New Issue