else
This commit is contained in:
parent
836ac16061
commit
1d1b5285f9
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,7 @@ def boot():
|
|||
|
||||
def pixelify(path, objectives=[32], subfolder="pixel", outpath=""):
|
||||
if '.' in path:
|
||||
path = path.replace('\\', '/')
|
||||
name = path.split('/')[-1]
|
||||
path = '/'.join(path.split('/')[:-1])
|
||||
images = [name]
|
||||
|
@ -21,6 +22,8 @@ def pixelify(path, objectives=[32], subfolder="pixel", outpath=""):
|
|||
if path[-1] in ['/', '\\']:
|
||||
path = path[:-1]
|
||||
|
||||
print(path)
|
||||
|
||||
if outpath == "":
|
||||
outpath = path + '/' + subfolder + '/'
|
||||
elif ':' not in outpath:
|
||||
|
|
Loading…
Reference in a new issue