kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
Merge pull request #40 from Talha345/linux_file_path
Added file path support for linux users.pull/46/head
commit
08af65f1fb
|
@ -32,9 +32,11 @@ modelFileFormat = '' # The file format of the objects you would like to export
|
|||
|
||||
# The path to Blend_My_NFTs folder:
|
||||
save_path_mac = ''
|
||||
save_path_linux = ''
|
||||
save_path_windows = r''
|
||||
# Place the path in the '', e.g: save_path_mac = '/Users/Path/to/Blend_My_NFTs'
|
||||
# Example mac: /Users/Path/to/Blend_My_NFTs
|
||||
# Example linux: /Users/Path/to/Blend_My_NFTs
|
||||
# Example windows: C:\Users\Path\to\Blend_My_NFTs
|
||||
|
||||
maxNFTs = 0 # The maximum number of NFTs you want to generate.
|
||||
|
@ -142,6 +144,7 @@ checkRarity = False
|
|||
import platform
|
||||
|
||||
mac = 'Darwin'
|
||||
linux = 'Linux'
|
||||
windows = 'Windows'
|
||||
slash = ''
|
||||
save_path = None
|
||||
|
@ -150,6 +153,9 @@ save_path = None
|
|||
if platform.system() == mac:
|
||||
save_path = save_path_mac
|
||||
slash = '/'
|
||||
elif platform.system() == linux:
|
||||
save_path = save_path_linux
|
||||
slash = '/'
|
||||
elif platform.system() == windows:
|
||||
save_path = save_path_windows
|
||||
slash = '\\'
|
||||
|
|
Ładowanie…
Reference in New Issue