aboutsummaryrefslogtreecommitdiffstats
path: root/dwasm.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdwasm.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/dwasm.py b/dwasm.py
index ce5646f..8a1b0ab 100755
--- a/dwasm.py
+++ b/dwasm.py
@@ -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()