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=""):
|
def pixelify(path, objectives=[32], subfolder="pixel", outpath=""):
|
||||||
if '.' in path:
|
if '.' in path:
|
||||||
|
path = path.replace('\\', '/')
|
||||||
name = path.split('/')[-1]
|
name = path.split('/')[-1]
|
||||||
path = '/'.join(path.split('/')[:-1])
|
path = '/'.join(path.split('/')[:-1])
|
||||||
images = [name]
|
images = [name]
|
||||||
|
@ -20,6 +21,8 @@ def pixelify(path, objectives=[32], subfolder="pixel", outpath=""):
|
||||||
images = os.listdir(path)
|
images = os.listdir(path)
|
||||||
if path[-1] in ['/', '\\']:
|
if path[-1] in ['/', '\\']:
|
||||||
path = path[:-1]
|
path = path[:-1]
|
||||||
|
|
||||||
|
print(path)
|
||||||
|
|
||||||
if outpath == "":
|
if outpath == "":
|
||||||
outpath = path + '/' + subfolder + '/'
|
outpath = path + '/' + subfolder + '/'
|
||||||
|
|
Loading…
Reference in a new issue