From 8c52cab55e3bc8a5c68e31866f0ef36816b4f95b Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 9 Sep 2002 23:15:55 +0000 Subject: [PATCH] tweaks for install on ttown --- direct/src/ffi/genPyCode | 2 +- direct/src/showbase/sitecustomize.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/direct/src/ffi/genPyCode b/direct/src/ffi/genPyCode index 738e198825..23b47d2f88 100755 --- a/direct/src/ffi/genPyCode +++ b/direct/src/ffi/genPyCode @@ -62,6 +62,6 @@ fi if [ "$firstarg" = "install" ]; then # as installed on a machine without ctattach etc. - exec bin/ppython -d bin/generatePythonCode -v -d lib/py -e ../direct/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs + exec install/bin/ppython -d install/bin/generatePythonCode -v -d install/lib/py -e direct/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs exit 1 fi diff --git a/direct/src/showbase/sitecustomize.py b/direct/src/showbase/sitecustomize.py index 49033c38bf..d4feee5f2b 100644 --- a/direct/src/showbase/sitecustomize.py +++ b/direct/src/showbase/sitecustomize.py @@ -52,7 +52,7 @@ def getPackages(): # we're running from the directory above all of the source # trees; look within these directories for the *.pth files. - searchstr = os.path.join('*', 'etc', '*.pth') + searchstr = os.path.join('*', 'src', 'configfiles', '*.pth') filenames = glob.glob(searchstr) if len(filenames) == 0: print '' @@ -61,7 +61,7 @@ def getPackages(): print '' for filename in filenames: - tree = os.path.dirname(os.path.dirname(filename)) + tree = os.path.dirname(os.path.dirname(os.path.dirname(filename))) readpth(tree, filename) else: