From 2b03d10fb2fd2077be3e936a61bf7a47eb4048aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kl=C3=B6tzke?= Date: Wed, 19 Sep 2018 20:41:32 +0200 Subject: [PATCH] bob: make safely importable --- bob | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bob b/bob index 0d09c9c60..c37cb7d99 100755 --- a/bob +++ b/bob @@ -9,4 +9,5 @@ sys.path.insert(0, pym_path) from bob.scripts import bob -sys.exit(bob(scr_path)) +if __name__ == '__main__': + sys.exit(bob(scr_path))