From 1da688a101fa7145928c9bcaa260a2a64e303ab6 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 16 Oct 2009 00:18:30 +0000 Subject: [PATCH] can't use __doc__ for help; it gets stripped out --- direct/src/p3d/AppRunner.py | 2 +- direct/src/p3d/packp3d.py | 4 ++-- direct/src/p3d/ppackage.py | 4 ++-- direct/src/p3d/ppatcher.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/direct/src/p3d/AppRunner.py b/direct/src/p3d/AppRunner.py index d58ba4c7c1..fa11cceaa6 100644 --- a/direct/src/p3d/AppRunner.py +++ b/direct/src/p3d/AppRunner.py @@ -660,7 +660,7 @@ class AppRunner(DirectObject): def loadMultifilePrcFiles(self, mf, root): """ Loads any prc files in the root of the indicated - Multifile, which is presumbed to have been mounted already + Multifile, which is presumed to have been mounted already under root. """ # We have to load these prc files explicitly, since the diff --git a/direct/src/p3d/packp3d.py b/direct/src/p3d/packp3d.py index 2111aad760..8518715005 100755 --- a/direct/src/p3d/packp3d.py +++ b/direct/src/p3d/packp3d.py @@ -1,6 +1,6 @@ #! /usr/bin/env python -""" +usageText = """ This command will pack a Panda application, consisting of a directory tree of .py files and models, into a p3d file for convenient @@ -106,7 +106,7 @@ def makePackedApp(args): elif option == '-D': allowPythonDev = True elif option == '-h': - print __doc__ % (os.path.split(sys.argv[0])[1]) + print usageText % (os.path.split(sys.argv[0])[1]) sys.exit(1) if not args: diff --git a/direct/src/p3d/ppackage.py b/direct/src/p3d/ppackage.py index 0c1e065800..c8c0076461 100755 --- a/direct/src/p3d/ppackage.py +++ b/direct/src/p3d/ppackage.py @@ -1,6 +1,6 @@ #! /usr/bin/env python -""" +usageText = """ This script can be used to produce a Panda3D downloadable "package", which may contain arbitrary files--for instance, Python code, bam files, and/or compiled DLL's--and which may be downloaded by @@ -96,7 +96,7 @@ from direct.p3d import Packager from pandac.PandaModules import * def usage(code, msg = ''): - print >> sys.stderr, __doc__ % {'prog' : os.path.split(sys.argv[0])[1]} + print >> sys.stderr, usageText % {'prog' : os.path.split(sys.argv[0])[1]} print >> sys.stderr, msg sys.exit(code) diff --git a/direct/src/p3d/ppatcher.py b/direct/src/p3d/ppatcher.py index 38c8d84afb..5b87399c6f 100755 --- a/direct/src/p3d/ppatcher.py +++ b/direct/src/p3d/ppatcher.py @@ -1,6 +1,6 @@ #! /usr/bin/env python -""" +usageText = """ This script generates the patches required to support incremental download of Panda3D packages. It can be run as a post-process on a @@ -63,7 +63,7 @@ from direct.p3d.PatchMaker import PatchMaker from pandac.PandaModules import * def usage(code, msg = ''): - print >> sys.stderr, __doc__ % {'prog' : os.path.split(sys.argv[0])[1]} + print >> sys.stderr, usageText % {'prog' : os.path.split(sys.argv[0])[1]} print >> sys.stderr, msg sys.exit(code)