This commit is contained in:
David Rose 2009-08-20 23:40:30 +00:00
parent 5c4dac4493
commit d9986dad01
3 changed files with 4 additions and 5 deletions

View File

@ -303,7 +303,6 @@ run(int argc, char *argv[]) {
} }
// All instances have finished; we can exit. // All instances have finished; we can exit.
cerr << "clean exit\n";
unload_plugin(); unload_plugin();
return 0; return 0;
} }

View File

@ -86,7 +86,7 @@ def makePackedApp(args):
sys.exit(1) sys.exit(1)
if not args: 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: if len(args) > 1:
raise ArgumentError, "Too many arguments." raise ArgumentError, "Too many arguments."

View File

@ -22,13 +22,13 @@ This script is actually a wrapper around Panda's Packager.py.
Usage: Usage:
%s [opts] package.pdef %(prog)s [opts] package.pdef
Required: Required:
package.pdef package.pdef
The config file that describes the contents of the package file(s) 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. describe the syntax of this file.
Options: Options:
@ -75,7 +75,7 @@ from direct.showutil import make_contents
from pandac.PandaModules import * from pandac.PandaModules import *
def usage(code, msg = ''): 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 print >> sys.stderr, msg
sys.exit(code) sys.exit(code)