diff options
author | Michael Schwarz <michi.schwarz@gmail.com> | 2014-12-20 22:22:04 +0100 |
---|---|---|
committer | Michael Schwarz <michi.schwarz@gmail.com> | 2014-12-21 02:15:45 +0100 |
commit | c74efa59dc37b06cc1aeddd0ba736552a5b9f35e (patch) | |
tree | 19ea446ef3c551896cead0cf2fe5f24e78d2a4db /support/openscad | |
parent | e309a206be4d5c0cd082ef557633d477b1638850 (diff) | |
download | pogojig-c74efa59dc37b06cc1aeddd0ba736552a5b9f35e.tar.gz pogojig-c74efa59dc37b06cc1aeddd0ba736552a5b9f35e.tar.bz2 pogojig-c74efa59dc37b06cc1aeddd0ba736552a5b9f35e.zip |
Rewritten unit conversion methods of inkex.py to properly handle viewport settings.
Diffstat (limited to 'support/openscad')
-rw-r--r-- | support/openscad/__main__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/support/openscad/__main__.py b/support/openscad/__main__.py index 08b2ab6..0f319f8 100644 --- a/support/openscad/__main__.py +++ b/support/openscad/__main__.py @@ -34,4 +34,10 @@ def main(in_path, out_path, deps_path): _write_dependencies(deps_path, relpath(out_path), deps - ignored_files) -main(*sys.argv[1:]) +try: + main(*sys.argv[1:]) +except util.UserError as e: + print 'Error:', e + sys.exit(1) +except KeyboardInterrupt: + sys.exit(2) |