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 7bf1b13..04b6ca5 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()