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

Unified Diff: appengine/findit/util_scripts/__init__.py

Issue 2435863003: [Findit] Add local git parsers. (Closed)
Patch Set: Rebase. Created 4 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 | « no previous file | appengine/findit/util_scripts/crash_queries/crash_iterator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/util_scripts/__init__.py
diff --git a/appengine/findit/util_scripts/__init__.py b/appengine/findit/util_scripts/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..78ed42d6db0e729255a9a12768c6294b4013911c
--- /dev/null
+++ b/appengine/findit/util_scripts/__init__.py
@@ -0,0 +1,17 @@
+# Copyright 2016 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
+import sys
+
+
+_THIS_DIR = os.path.dirname(os.path.realpath(__file__))
+
+# TODO(katesonia): Figure out why os.getenv('APPLICATION_ID') always return
+# True for local unittest.
+#
+# The util_scripts/ are stand-alone local scripts and all those local
+# scripts and utils under it should be imported starting from util_scripts/.
+# For all the other modules of predator, imports starts from findit/ root dir.
+sys.path.insert(0, _THIS_DIR)
« no previous file with comments | « no previous file | appengine/findit/util_scripts/crash_queries/crash_iterator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698