Permalink
Browse files

pgxnclient.cli can be used as command line entry point

Handy for python3 as "build" doesn't create a Py3 script whereas cli.py
gets converted.
  • Loading branch information...
dvarrazzo committed Sep 26, 2012
1 parent 17dd09c commit 394bc024b57b2e10b3d17d4ab459bc2ae345b86f
Showing with 3 additions and 0 deletions.
  1. +3 −0 pgxnclient/cli.py
View
@@ -122,3 +122,6 @@ def _get_exec(cmd):
return fn
+if __name__ == '__main__':
+ script()
+

0 comments on commit 394bc02

Please sign in to comment.