Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: sky/tools/skypy/paths.py

Issue 705623003: Fix test_sky in release builds (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/tools/skypy/configuration.py ('k') | sky/tools/test_perf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/skypy/paths.py
diff --git a/sky/tools/skypy/paths.py b/sky/tools/skypy/paths.py
index 51bddc7d6280b9a8dbe39388a0ead0819e9cba3c..ffbd0ca8678209ce1eb6eb9788b3c705b77da3ff 100644
--- a/sky/tools/skypy/paths.py
+++ b/sky/tools/skypy/paths.py
@@ -4,11 +4,11 @@
import os
-BUILD_DIRECTORY = 'out'
-CONFIG_DIRECTORY = 'Debug'
-SRC_ROOT = os.path.abspath(os.path.join(__file__,
- os.pardir, os.pardir, os.pardir, os.pardir))
-SKY_ROOT = os.path.join(SRC_ROOT, 'sky')
-GEN_ROOT = os.path.join(SRC_ROOT, BUILD_DIRECTORY, CONFIG_DIRECTORY, 'gen')
-SKY_TOOLS_DIRECTORY = os.path.join(SRC_ROOT, 'sky', 'tools')
-MOJO_SHELL_PATH = os.path.join(SRC_ROOT, BUILD_DIRECTORY, CONFIG_DIRECTORY, 'mojo_shell')
+class Paths(object):
+ def __init__(self, build_directory):
+ self.src_root = os.path.abspath(os.path.join(__file__,
+ os.pardir, os.pardir, os.pardir, os.pardir))
+ self.sky_root = os.path.join(self.src_root, 'sky')
+ self.gen_root = os.path.join(self.src_root, build_directory, 'gen')
+ self.sky_tools_directory = os.path.join(self.src_root, 'sky', 'tools')
+ self.mojo_shell_path = os.path.join(self.src_root, build_directory, 'mojo_shell')
« no previous file with comments | « sky/tools/skypy/configuration.py ('k') | sky/tools/test_perf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698