瀏覽代碼

remove direct.pth, sitecustomize.py

David Rose 21 年之前
父節點
當前提交
b39936f222
共有 3 個文件被更改,包括 1 次插入61 次删除
  1. 1 1
      direct/src/configfiles/Sources.pp
  2. 0 23
      direct/src/configfiles/direct.pth
  3. 0 37
      direct/src/showbase/sitecustomize.py

+ 1 - 1
direct/src/configfiles/Sources.pp

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

+ 0 - 23
direct/src/configfiles/direct.pth

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

+ 0 - 37
direct/src/showbase/sitecustomize.py

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