@@ -25,7 +25,7 @@ def program(*args):
25
25
except IndexError : # getopt.GetoptError:
26
26
# print "Usage: " + sys.argv[0] + ' -i <inputfile> -o <outputfile>'
27
27
# sys.exit(2)
28
- file_in = 'rgb_combined_v03 .csv'
28
+ file_in = 'rgb_combined_v05 .csv'
29
29
30
30
# Exit if file_in not found:
31
31
if os .path .exists (file_in ) and os .access (file_in , os .R_OK ):
@@ -62,14 +62,14 @@ def program(*args):
62
62
with open (file_in , 'rU' ) as f :
63
63
reader = csv .reader (f , delimiter = ',' )
64
64
first_line = f .readline () # pull out first line - do not print
65
- print (" HexNameDict = {" ,end = "" ) # no NewLine
65
+ print (" HexNameDict= {" ,end = "" ) # no NewLine
66
66
# Loop through lines in input to generate: "[222,43,221],[2,11,222]", one for each color:
67
67
rownum = 0
68
68
for i in reader :
69
69
strRGBHex = i [0 ]
70
70
if rownum == 0 :
71
71
# print first row without a comma:
72
- print (' "'+ i [0 ]+ '":"' + i [4 ]+ '"' ,end = "" )
72
+ print ( ' "'+ i [0 ]+ '":"' + i [4 ]+ '"' ,end = "" )
73
73
lastRGBHex = strRGBHex
74
74
rownum = rownum + 1
75
75
else :
@@ -89,4 +89,4 @@ def program(*args):
89
89
sys .stdout = stdout # Restore regular stdout.
90
90
print (footer_row1 )
91
91
elapsed = timeit .default_timer () - start_time # End timer:
92
- print ("# " + time .strftime ('%Y-%m-%d %H:%M (local time)' ) + ' ' + sys .argv [0 ] + " END: ran for " + "{:.2f}" .format (elapsed * 1000 )+ ' secs.' )
92
+ print ("# " + time .strftime ('%Y-%m-%d %H:%M (local time)' ) + ' ' + sys .argv [0 ] + " END: ran for " + "{:.2f}" .format (elapsed * 1000 )+ ' secs.' )
0 commit comments