Oh, Bumble! You have fumbled! bool('False') == True!
Chris Pressey
10 years ago
59 | 59 | # image.putpixel((x, y), 128) |
60 | 60 | |
61 | 61 | if options.debug: |
62 | print "saving contrast file" | |
62 | 63 | contrast.save(os.path.join(dirname, "contrast.png")) |
63 | 64 | |
64 | 65 | cuttable_ribbons = [] # list of (y, thickness) tuples |
118 | 119 | |
119 | 120 | def main(argv): |
120 | 121 | optparser = OptionParser(__doc__) |
121 | optparser.add_option("--debug", action='store_true', default='False', | |
122 | optparser.add_option("--debug", action='store_true', default=False, | |
122 | 123 | help="output debuging info") |
123 | 124 | (options, args) = optparser.parse_args(argv[1:]) |
124 | 125 |