diff --git a/direct/src/plugin_standalone/panda3d.cxx b/direct/src/plugin_standalone/panda3d.cxx index 56e736161d..9c56de5b22 100644 --- a/direct/src/plugin_standalone/panda3d.cxx +++ b/direct/src/plugin_standalone/panda3d.cxx @@ -303,7 +303,6 @@ run(int argc, char *argv[]) { } // All instances have finished; we can exit. - cerr << "clean exit\n"; unload_plugin(); return 0; } diff --git a/direct/src/showutil/packp3d.py b/direct/src/showutil/packp3d.py index d896c60669..e48694a3e8 100755 --- a/direct/src/showutil/packp3d.py +++ b/direct/src/showutil/packp3d.py @@ -86,7 +86,7 @@ def makePackedApp(args): sys.exit(1) if not args: - raise ArgumentError, "No destination app specified. Use:\npackp3d.py app.p3d" + raise ArgumentError, "No target app specified. Use:\n%s app.p3d" % (os.path.split(sys.argv[0])[1]) if len(args) > 1: raise ArgumentError, "Too many arguments." diff --git a/direct/src/showutil/ppackage.py b/direct/src/showutil/ppackage.py index fa67d2947a..540ded12bc 100755 --- a/direct/src/showutil/ppackage.py +++ b/direct/src/showutil/ppackage.py @@ -22,13 +22,13 @@ This script is actually a wrapper around Panda's Packager.py. Usage: - %s [opts] package.pdef + %(prog)s [opts] package.pdef Required: package.pdef The config file that describes the contents of the package file(s) - to be built, in excruciating detail. Use "ppackage.py -H" to + to be built, in excruciating detail. Use "%(prog)s -H" to describe the syntax of this file. Options: @@ -75,7 +75,7 @@ from direct.showutil import make_contents from pandac.PandaModules import * def usage(code, msg = ''): - print >> sys.stderr, __doc__ % (os.path.split(sys.argv[0])[1]) + print >> sys.stderr, __doc__ % {'prog' : os.path.split(sys.argv[0])[1]} print >> sys.stderr, msg sys.exit(code)