can't use __doc__ for help; it gets stripped out

This commit is contained in:
David Rose 2009-10-16 00:18:30 +00:00
parent 7ae0c8c305
commit 1da688a101
4 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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:

View File

@ -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)

View File

@ -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)