Oops, protect hk.py's hooke.main() call with if __name__ == '__main__'.
authorW. Trevor King <wking@drexel.edu>
Sat, 14 Aug 2010 07:58:05 +0000 (03:58 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 14 Aug 2010 07:58:05 +0000 (03:58 -0400)
*This* fixes amantedpaz' crash ;).

bin/hk.py

index 7bf1b138053d42cb0e880512705f5e7c923fe908..04b6ca5f23b6544b5c8d43d6f481603ff3c5b7b5 100755 (executable)
--- a/bin/hk.py
+++ b/bin/hk.py
@@ -2,4 +2,6 @@
 
 import hooke.hooke
 
-hooke.hooke.main()
+
+if __name__ == '__main__':
+    hooke.hooke.main()