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

Side by Side Diff: appengine/predator/analysis/old_init.py

Issue 2447253002: [Findit & Predator] Code reorg of Findit. (Closed)
Patch Set: Clean up. 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 unified diff | Download patch
OLDNEW
(Empty)
1 import os
2 import sys
3
4 # The main reason for this hack is: we want this module to be self-contained.
5 # And due to testing setup in the infra repo, appengine/cr_culprit_finder would
6 # be the current working directory during test execution instead of this
7 # directory. But we can't import from appengine/cr_culprit_finder, because the
8 # root directory for app deployment is appengine/cr_culprit_finder/service/*
9 # instead.
10 #
11 # As a side effect, clients importing this module via symbolic links don't have
12 # to explicitly add this directory to the PYTHONPATH or sys.path, because it is
13 # implicitly done here.
14 #
15 # Add to sys.path this directory so that unittests and deployed app won't
16 # complain about modules not found.
17 _THIS_DIR = os.path.dirname(os.path.abspath(__file__))
18 if _THIS_DIR not in sys.path:
19 sys.path.insert(0, _THIS_DIR)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698