From fb441b2b1054de1ba0a99d01b9e1ea9700024aeb Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 22 Oct 2008 23:00:45 -0600 Subject: make-doc now includes the lite-* scripts, both with now check in __name__ == '__main__' before starting --- ipa | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ipa') diff --git a/ipa b/ipa index 5122af0a..b202a5d0 100755 --- a/ipa +++ b/ipa @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # Authors: # Jason Gerard DeRose @@ -20,7 +20,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ -Command Line Interface for IPA Administration. +Command Line Interface for IPA administration. The CLI functionality is implemented in ipalib/cli.py """ @@ -30,5 +30,6 @@ from ipalib import api from ipalib.cli import CLI import ipalib.load_plugins -cli = CLI(api) -sys.exit(cli.run()) +if __name__ == '__main__': + cli = CLI(api) + sys.exit(cli.run()) -- cgit