[zorg] r324144 - CWD robust dep path calculation

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 13:44:06 PST 2018


Author: cmatthews
Date: Fri Feb  2 13:44:06 2018
New Revision: 324144

URL: http://llvm.org/viewvc/llvm-project?rev=324144&view=rev
Log:
CWD robust dep path calculation

Modified:
    zorg/trunk/zorg/jenkins/build.py

Modified: zorg/trunk/zorg/jenkins/build.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/jenkins/build.py?rev=324144&r1=324143&r2=324144&view=diff
==============================================================================
--- zorg/trunk/zorg/jenkins/build.py (original)
+++ zorg/trunk/zorg/jenkins/build.py Fri Feb  2 13:44:06 2018
@@ -19,11 +19,11 @@ SERVER = "labmaster2.local"
 NINJA = "/usr/local/bin/ninja"
 
 # Add dependency checker to the Python path.
-sys.path.append(os.path.abspath("../../dep/"))
-import dep  # noqa
-
 # For relative reference to the dependency file.
 here = os.path.dirname(os.path.abspath(__file__))
+sys.path.append(os.path.abspath(here + "/../../dep/"))
+import dep  # noqa
+
 
 
 def readme_name(repo):




More information about the llvm-commits mailing list