Outputpath is joined with absolute path.

This commit is contained in:
2019-03-03 20:00:56 +01:00
parent 8591b78d9d
commit 792237ac3e

View File

@@ -19,7 +19,11 @@ OUTPUT_SIZES = [
def processImage(file, outputPath=None):
outputPath = args.output if 'args.output' in globals() else os.path.join(OUTPUT_FALLBACK, 'output')
if outputPath == None:
outputPath = args.output if 'args.output' in globals() else os.path.join(OUTPUT_FALLBACK, 'output')
else:
outputPath = os.path.join(OUTPUT_FALLBACK, outputPath)
print('outputpath', outputPath)
image = Image.open(file)
fileID = uuid.uuid4().hex