a3f62ee68f
(Still not fully hooked up to buddies)
20 lines
309 B
Python
Executable File
20 lines
309 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import sys
|
|
|
|
result = 'colors_dict = {\n'
|
|
result += '\'white\' : \'black\' , \\\n'
|
|
|
|
hex_file = open(sys.argv[1], 'r')
|
|
|
|
for line in hex_file.readlines():
|
|
[ stroke, fill ] = line.split()
|
|
result += '\'#%s\' : \'#%s\', \\\n' % (fill, stroke)
|
|
|
|
result += '}'
|
|
|
|
hex_file.close()
|
|
|
|
print result
|
|
|