[Lldb-commits] [lldb] r112688 - /lldb/trunk/test/dotest.pl

Johnny Chen johnny.chen at apple.com
Tue Aug 31 17:55:37 PDT 2010


Author: johnny
Date: Tue Aug 31 19:55:36 2010
New Revision: 112688

URL: http://llvm.org/viewvc/llvm-project?rev=112688&view=rev
Log:
Updated to add plugins directory to PYTHONPATH.

Modified:
    lldb/trunk/test/dotest.pl

Modified: lldb/trunk/test/dotest.pl
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.pl?rev=112688&r1=112687&r2=112688&view=diff
==============================================================================
--- lldb/trunk/test/dotest.pl (original)
+++ lldb/trunk/test/dotest.pl Tue Aug 31 19:55:36 2010
@@ -16,14 +16,15 @@
 
 my $scriptDir = $FindBin::Bin;
 my $baseDir = abs_path("$scriptDir/..");
+my $pluginDir = "$baseDir/test/plugins";
 my $testDir = $ARGV[0];
 
 my $dbgPath = "$baseDir/build/Debug/LLDB.framework/Resources/Python";
 my $relPath = "$baseDir/build/Release/LLDB.framework/Resources/Python";
 if (-d $dbgPath) {
-  $ENV{'PYTHONPATH'} = "$dbgPath:$scriptDir";
+  $ENV{'PYTHONPATH'} = "$dbgPath:$scriptDir:$pluginDir";
 } elsif (-d $relPath) {
-  $ENV{'PYTHONPATH'} = "$relPath:$scriptDir";
+  $ENV{'PYTHONPATH'} = "$relPath:$scriptDir:$pluginDir";
 }
 #print("ENV{PYTHONPATH}=$ENV{'PYTHONPATH'}\n");
 





More information about the lldb-commits mailing list