mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
can't use __doc__ for help; it gets stripped out
This commit is contained in:
parent
7ae0c8c305
commit
1da688a101
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user