diff options
author | 2016-05-04 13:36:48 +0000 | |
---|---|---|
committer | 2016-05-04 18:31:24 +0000 | |
commit | 4dd18ecfc4c32497ca40f3af4d37e24a8f99dfb7 (patch) | |
tree | 9a6af4d14972be23777b2129beaf7f0ca1d9777e /src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java | |
parent | e55161f474ff36e310f6f6fff5d5232320df3c54 (diff) |
Switch to using ../repo-name syntax for runfiles
--
MOS_MIGRATED_REVID=121475668
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java b/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java index 60fa5a61cf..045c06ca4e 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java +++ b/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java @@ -406,8 +406,8 @@ public final class PyCommon { } else { ruleContext.attributeError("srcs", buildMultipleMainMatchesErrorText(explicitMain, mainSourceName, - mainArtifact.getRootRelativePath().toString(), - outItem.getRootRelativePath().toString())); + mainArtifact.getRunfilesPath().toString(), + outItem.getRunfilesPath().toString())); } } } @@ -418,7 +418,7 @@ public final class PyCommon { } PathFragment workspaceName = new PathFragment(ruleContext.getRule().getWorkspaceName()); - return workspaceName.getRelative(mainArtifact.getRootRelativePath()).getPathString(); + return workspaceName.getRelative(mainArtifact.getRunfilesPath()).getPathString(); } public Artifact getExecutable() { |