Browse Source

Add /usr/local/lib to search path, and /usr/PCBSD/local/lib on PC-BSD

rdb 16 years ago
parent
commit
8d3b22e3cc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      direct/src/p3d/Packager.py

+ 5 - 0
direct/src/p3d/Packager.py

@@ -1682,11 +1682,16 @@ class Packager:
             self.addPosixSearchPath(self.executablePath, "PATH")
             self.addPosixSearchPath(self.executablePath, "PATH")
             self.executablePath.appendDirectory('/lib')
             self.executablePath.appendDirectory('/lib')
             self.executablePath.appendDirectory('/usr/lib')
             self.executablePath.appendDirectory('/usr/lib')
+            self.executablePath.appendDirectory('/usr/local/lib')
         else:
         else:
             self.addPosixSearchPath(self.executablePath, "LD_LIBRARY_PATH")
             self.addPosixSearchPath(self.executablePath, "LD_LIBRARY_PATH")
             self.addPosixSearchPath(self.executablePath, "PATH")
             self.addPosixSearchPath(self.executablePath, "PATH")
             self.executablePath.appendDirectory('/lib')
             self.executablePath.appendDirectory('/lib')
             self.executablePath.appendDirectory('/usr/lib')
             self.executablePath.appendDirectory('/usr/lib')
+            self.executablePath.appendDirectory('/usr/local/lib')
+        
+        if platform.uname()[1]=="pcbsd":
+            self.executablePath.appendDirectory('/usr/PCBSD/local/lib')
 
 
         # Set this flag true to automatically add allow_python_dev to
         # Set this flag true to automatically add allow_python_dev to
         # any applications.
         # any applications.