Skip to content
Snippets Groups Projects
Verified Commit ee44628e authored by rahix's avatar rahix
Browse files

fix(imageconvert): Use Python 3


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent c05530a5
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
#!/usr/bin/env python3
from PIL import Image
import sys
......@@ -11,7 +11,7 @@ im = Image.open(sys.argv[1])
out_name = '.'.join(sys.argv[1].split('.')[:-1])
print out_name
print(out_name)
out = open(out_name + ".h", 'w')
out.write("const unsigned char %s[] = {\n" % out_name.split('/')[-1])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment