master
Voussoir 2014-12-15 03:02:01 -08:00
parent 836ac16061
commit 1d1b5285f9
1 changed files with 3 additions and 0 deletions

View File

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