When running dotest.py under pdb (the python debugger), define DOTEST_PDB=YES and

DOTEST_SCRIPT_DIR=/path/leading/to/your/dotest/script/directory.

llvm-svn: 137492
This commit is contained in:
Johnny Chen 2011-08-12 18:54:11 +00:00
parent def8bdbfac
commit 70cb84a0f6
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ def setupSysPath():
global svn_info global svn_info
# Get the directory containing the current script. # Get the directory containing the current script.
if "DOTEST_PROFILE" in os.environ and "DOTEST_SCRIPT_DIR" in os.environ: if ("DOTEST_PROFILE" in os.environ or "DOTEST_PDB" in os.environ) and "DOTEST_SCRIPT_DIR" in os.environ:
scriptPath = os.environ["DOTEST_SCRIPT_DIR"] scriptPath = os.environ["DOTEST_SCRIPT_DIR"]
else: else:
scriptPath = sys.path[0] scriptPath = sys.path[0]