From b39936f22202d96893f55ba73d0cfd29346b8cf0 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 4 Jun 2004 22:20:45 +0000 Subject: [PATCH] remove direct.pth, sitecustomize.py --- direct/src/configfiles/Sources.pp | 2 +- direct/src/configfiles/direct.pth | 23 ----------------- direct/src/showbase/sitecustomize.py | 37 ---------------------------- 3 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 direct/src/configfiles/direct.pth delete mode 100644 direct/src/showbase/sitecustomize.py diff --git a/direct/src/configfiles/Sources.pp b/direct/src/configfiles/Sources.pp index 55994c5e36..9d55cfa8b0 100644 --- a/direct/src/configfiles/Sources.pp +++ b/direct/src/configfiles/Sources.pp @@ -1,2 +1,2 @@ #define INSTALL_CONFIG \ - direct.init Configrc direct.pth + direct.init Configrc diff --git a/direct/src/configfiles/direct.pth b/direct/src/configfiles/direct.pth deleted file mode 100644 index 2d038588b7..0000000000 --- a/direct/src/configfiles/direct.pth +++ /dev/null @@ -1,23 +0,0 @@ -lib -lib/py -src/actor -src/cluster -src/directbase -src/directtools -src/directdevices -src/directnotify -src/directutil -src/distributed -src/ffi -src/fsm -src/gui -src/interval -src/level -src/leveleditor -src/net -src/particles -src/showbase -src/showutil -src/task -src/tkpanels -src/tkwidgets diff --git a/direct/src/showbase/sitecustomize.py b/direct/src/showbase/sitecustomize.py deleted file mode 100644 index 7934424b1e..0000000000 --- a/direct/src/showbase/sitecustomize.py +++ /dev/null @@ -1,37 +0,0 @@ -"""This is a VR Studio custom script to make sure sys.path is set up -properly from the ctattach tools. It's not needed if you aren't using -ctattach, and its use is even somewhat deprecated for the VR Studio.""" - -import os -import sys - -def deCygwinify(path): - if os.name in ['nt'] and path[0] == '/': - # On Windows, we may need to convert from a Cygwin-style path - # to a native Windows path. - - # Check for a case like /i/ or /p/: this converts - # to I:/ or P:/. - - dirs = path.split('/') - if len(dirs) > 2 and len(dirs[1]) == 1: - path = '%s:\%s' % (dirs[1], '\\'.join(dirs[2:])) - - else: - # Otherwise, prepend $PANDA_ROOT and flip the slashes. - pandaRoot = os.getenv('PANDA_ROOT') - if pandaRoot: - path = os.path.normpath(pandaRoot + path) - - return path - -if os.getenv('CTPROJS'): - tree = os.getenv('DIRECT') - if not tree: - raise StandardError,'CTPROJS is defined, but you are not attached to DIRECT!' - tree = deCygwinify(tree) - parent, base = os.path.split(tree) - if parent not in sys.path: - sys.path.append(parent) - - import direct.showbase.FindCtaPaths