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

Unified Diff: mojo/tools/mopy/paths.py

Issue 707893005: Add mojo/tools/mopy with paths and version utilities (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 | « mojo/tools/mopy/mojo_python_tests_runner.py ('k') | mojo/tools/mopy/transitive_hash.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/mopy/paths.py
diff --git a/mojo/tools/mopy/paths.py b/mojo/tools/mopy/paths.py
new file mode 100644
index 0000000000000000000000000000000000000000..23da34737ccb64e13729e4605b04cc8a8d95df9c
--- /dev/null
+++ b/mojo/tools/mopy/paths.py
@@ -0,0 +1,17 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+
+class Paths(object):
+ """Provides commonly used paths"""
+
+ def __init__(self, build_directory=None):
+ """Specify a build_directory to generate paths to binary artifacts"""
+ self.src_root = os.path.abspath(os.path.join(__file__,
+ os.pardir, os.pardir, os.pardir, os.pardir))
+ self.mojo_dir = os.path.join(self.src_root, "mojo")
+ if build_directory:
+ self.mojo_shell_path = os.path.join(self.src_root, build_directory,
eseidel 2014/11/07 19:03:49 Do you want to set this to something in the case n
+ "mojo_shell")
« no previous file with comments | « mojo/tools/mopy/mojo_python_tests_runner.py ('k') | mojo/tools/mopy/transitive_hash.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698