remove direct.pth, sitecustomize.py

This commit is contained in:
David Rose 2004-06-04 22:20:45 +00:00
parent d11dd3ccd4
commit b39936f222
3 changed files with 1 additions and 61 deletions

View File

@ -1,2 +1,2 @@
#define INSTALL_CONFIG \
direct.init Configrc direct.pth
direct.init Configrc

View File

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

View File

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