Skip to content
Browse files

bugfix

  • Loading branch information...
1 parent 22b164b commit 051d33dca6d9bd80c6efc70920178bfcd8b1ca54 @gka gka committed Jan 17, 2012
Showing with 6 additions and 4 deletions.
  1. BIN doc/img/simplify.png
  2. +2 −2 kartograph/cli.py
  3. +4 −2 kartograph/kartograph.py
View
BIN doc/img/simplify.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
4 kartograph/cli.py
@@ -28,11 +28,11 @@ def main():
cfg = json.loads(t)
else:
raise Error('config json not found')
- elif o in ('o', '--output'):
+ elif o in ('-o', '--output'):
output = a
K = Kartograph()
- K.generate(cfg,output)
+ K.generate(cfg, output)
sys.exit(0)
if __name__ == "__main__":
View
6 kartograph/kartograph.py
@@ -47,8 +47,10 @@ def generate(self, opts, outfile=None):
self.join_layers(layers, layerOpts, layerFeatures)
self.store_layers(layers, layerOpts, layerFeatures, svg, opts)
- svg.firefox()
-
+ if outfile is None:
+ svg.firefox()
+ else:
+ svg.save(outfile)
def prepare_layers(self, opts):
"""

0 comments on commit 051d33d

Please sign in to comment.
Something went wrong with that request. Please try again.