[Lldb-commits] [lldb] r251047 - Remove special case logic for finding 3rd party libs

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 22 12:55:19 PDT 2015


Author: zturner
Date: Thu Oct 22 14:55:18 2015
New Revision: 251047

URL: http://llvm.org/viewvc/llvm-project?rev=251047&view=rev
Log:
Remove special case logic for finding 3rd party libs

Modified:
    lldb/trunk/lldb_shared_base.py
    lldb/trunk/test/dotest.py

Modified: lldb/trunk/lldb_shared_base.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lldb_shared_base.py?rev=251047&r1=251046&r2=251047&view=diff
==============================================================================
--- lldb/trunk/lldb_shared_base.py (original)
+++ lldb/trunk/lldb_shared_base.py Thu Oct 22 14:55:18 2015
@@ -10,6 +10,6 @@ def add_third_party_module_dirs(lldb_roo
     module_dirs = os.listdir(third_party_modules_dir)
     for module_dir in module_dirs:
         module_dir = os.path.join(third_party_modules_dir, module_dir)
-        sys.path.append(module_dir)
+        sys.path.insert(0, module_dir)
 lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe()))
 add_third_party_module_dirs(lldb_root)

Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=251047&r1=251046&r2=251047&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Thu Oct 22 14:55:18 2015
@@ -1116,14 +1116,9 @@ def setupSysPath():
     os.environ["LLDB_SRC"] = os.path.join(scriptPath, os.pardir)
 
     pluginPath = os.path.join(scriptPath, 'plugins')
-    pexpectPath = os.path.join(scriptPath, 'pexpect-2.4')
     toolsLLDBMIPath = os.path.join(scriptPath, 'tools', 'lldb-mi')
     toolsLLDBServerPath = os.path.join(scriptPath, 'tools', 'lldb-server')
 
-    # Put embedded pexpect at front of the load path so we ensure we
-    # use that version.
-    sys.path.insert(0, pexpectPath)
-
     # Insert script dir, plugin dir, lldb-mi dir and lldb-server dir to the sys.path.
     sys.path.insert(0, scriptPath)
     sys.path.insert(0, pluginPath)




More information about the lldb-commits mailing list