Use slave_build instead of checkout in run/api.py
authorrmistry <rmistry@google.com>
Tue, 9 Aug 2016 18:15:57 +0000 (11:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 9 Aug 2016 18:15:57 +0000 (11:15 -0700)
BUG=skia:5620
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2221423002

Review-Url: https://codereview.chromium.org/2221423002

infra/bots/recipe_modules/run/api.py

index 20e82f2b1b12676afdf0b1ee32cdda7c656a6a1f..0763529cb474c5c74da6f1aa362026000e7305f0 100644 (file)
@@ -62,8 +62,8 @@ class SkiaStepApi(recipe_api.RecipeApi):
   def rmtree(self, path):
     """Wrapper around api.file.rmtree with environment fix."""
     env = {}
-    env['PYTHONPATH'] = str(self.m.path['checkout'].join(
-        'infra', 'bots', '.recipe_deps', 'build', 'scripts'))
+    env['PYTHONPATH'] = str(self.m.path['slave_build'].join(
+        'skia', 'infra', 'bots', '.recipe_deps', 'build', 'scripts'))
     self.m.file.rmtree(self.m.path.basename(path),
                        path,
                        env=env,