projects
/
hooke.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Oops, protect hk.py's hooke.main() call with if __name__ == '__main__'.
[hooke.git]
/
bin
/
hk.py
diff --git
a/bin/hk.py
b/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()