diff --git a/direct/src/plugin/make_contents.py b/direct/src/plugin/make_contents.py index 5ca4673d92..05187c0e56 100755 --- a/direct/src/plugin/make_contents.py +++ b/direct/src/plugin/make_contents.py @@ -117,9 +117,8 @@ def makeContents(args): cm.build() -if __name__ == '__main__': - try: - makeContents(sys.argv[1:]) - except ArgumentError, e: - print e.args[0] - sys.exit(1) +try: + makeContents(sys.argv[1:]) +except ArgumentError, e: + print e.args[0] + sys.exit(1) diff --git a/direct/src/plugin/make_package.py b/direct/src/plugin/make_package.py index 693e5da29e..f4ea98b00e 100755 --- a/direct/src/plugin/make_package.py +++ b/direct/src/plugin/make_package.py @@ -222,9 +222,8 @@ def makePackage(args): pm.build() -if __name__ == '__main__': - try: - makePackage(sys.argv[1:]) - except ArgumentError, e: - print e.args[0] - sys.exit(1) +try: + makePackage(sys.argv[1:]) +except ArgumentError, e: + print e.args[0] + sys.exit(1)