This commit is contained in:
Voussoir 2014-12-15 03:02:01 -08:00
parent 836ac16061
commit 1d1b5285f9

View file

@ -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]
@ -21,6 +22,8 @@ def pixelify(path, objectives=[32], subfolder="pixel", outpath=""):
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 + '/'
elif ':' not in outpath: elif ':' not in outpath: