Permalink
Browse files

use new 'execute_and_exit()' function as entry point for 'dumbo' cons…

…ole script to avoid buildout bug (fixes GH-31)
  • Loading branch information...
Klaas Bosteels
Klaas Bosteels committed Mar 17, 2011
1 parent 1d63433 commit 76c7c9b5da62d104ee659752f7093c267a2a0832
Showing with 7 additions and 2 deletions.
  1. +6 −1 dumbo/__init__.py
  2. +1 −1 setup.py
View
@@ -25,7 +25,12 @@
from dumbo.lib import *
from dumbo.decor import *
-if __name__ == '__main__':
+
+def execute_and_exit():
import sys
from dumbo.cmd import dumbo
sys.exit(dumbo())
+
+
+if __name__ == '__main__':
+ execute_and_exit()
View
@@ -9,7 +9,7 @@
packages = find_packages(),
entry_points = {
'console_scripts': [
- 'dumbo = dumbo.cmd:dumbo',
+ 'dumbo = dumbo:execute_and_exit',
]
},
zip_safe = True,

0 comments on commit 76c7c9b

Please sign in to comment.