diff options
author | terminaldweller <thabogre@gmail.com> | 2022-02-14 19:22:31 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-02-14 19:22:31 +0000 |
commit | bddd10b1dab1cb88905489f93a77b5a8c465650b (patch) | |
tree | d33e31e4da2b4da846969c4ab21fe45712cdf853 /dwasm.py | |
parent | listened to lgtm... (diff) | |
download | dwasm-bddd10b1dab1cb88905489f93a77b5a8c465650b.tar.gz dwasm-bddd10b1dab1cb88905489f93a77b5a8c465650b.zip |
Diffstat (limited to '')
-rwxr-xr-x | dwasm.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -3,12 +3,14 @@ import code import signal import sys -from parse import Argparser, premain, SigHandler_SIGINT,PythonInterpreter +from parse import Argparser, premain, SigHandler_SIGINT, PythonInterpreter + def getWASMModule(): module_path = sys.argv[1] interpreter = PythonInterpreter() - #module = interpreter.parse(module_path) + # module = interpreter.parse(module_path) + def main(): signal.signal(signal.SIGINT, SigHandler_SIGINT) @@ -18,7 +20,8 @@ def main(): premain(argparser) except Exception as e: print(e.__doc__) - if e.message: print(e.message) + if e.message: + print(e.message) variables = globals().copy() variables.update(locals()) shell = code.InteractiveConsole(variables) @@ -26,5 +29,6 @@ def main(): else: premain(argparser) + if __name__ == "__main__": main() |