From fc2bae004b0c6763e7262090ee73a720bf8159cd Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 12 May 2006 09:24:55 -0400 Subject: Make unit tests use cobbler.py instead of the /usr/bin wrapper script --- cobbler/cobbler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cobbler') diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py index 01639ca..710fb05 100755 --- a/cobbler/cobbler.py +++ b/cobbler/cobbler.py @@ -1,3 +1,5 @@ +#!/usr/bin/python + """ Command line interface for cobbler, a network provisioning configuration library. Consult 'man cobbler' for general info. This class serves @@ -269,4 +271,5 @@ def main(): sys.exit(1) sys.exit(0) - +if __name__ == "__main__": + sys.exit(main()) -- cgit