diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-07 16:16:56 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-07 16:16:56 -0700 |
commit | ac69304d5a3b0ce06877d0a37f48df07aff756f2 (patch) | |
tree | 221c699bd79afe12308b5a2d3bc08c8c9d9678fb | |
parent | 89c917628df70b750e165e390e68d3ca5f2a9cf1 (diff) |
fix crunch path
-rw-r--r-- | tools/file_packager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py index 6a8390ad..1443d165 100644 --- a/tools/file_packager.py +++ b/tools/file_packager.py @@ -240,7 +240,7 @@ if crunch: #if not os.path.exists(os.path.basename(crunch_name)): # print >> sys.stderr, 'Failed to crunch, perhaps a weird dxt format? Looking for a source PNG for the DDS' # Popen([CRUNCH, '-file', unsuffixed(file_['srcpath']) + '.png', '-quality', crunch] + format, stdout=sys.stderr).communicate() - assert os.path.exists(os.path.basename(src_crunch_name)), 'crunch failed to generate output' + assert os.path.exists(src_crunch_name), 'crunch failed to generate output' # prepend the dds header crunched = open(src_crunch_name, 'rb').read() c = open(src_crunch_name, 'wb') |