diff -r ba5f64fe0e00 -r d73b64672238 svgui/pyjs/pyjs.py --- a/svgui/pyjs/pyjs.py Wed Aug 16 12:30:31 2017 +0300 +++ b/svgui/pyjs/pyjs.py Wed Aug 16 12:48:08 2017 +0300 @@ -103,6 +103,7 @@ name = 'Tuple' return name + # XXX: this is a hack: these should be dealt with another way # however, console is currently the only global name which is causing # problems. @@ -1740,6 +1741,7 @@ print >>sys.stderr, 'Warning: Unable to find imported javascript:', js return lib_code.getvalue(), app_code.getvalue() + usage = """ usage: %s file_name [module_name] """ @@ -1760,5 +1762,6 @@ module_name = None print translate(file_name, module_name), + if __name__ == "__main__": main()