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

Unified Diff: third_party/typ/typ/host.py

Issue 2077273002: Roll third_party/typ to 0.9.5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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 | « third_party/typ/typ/arg_parser.py ('k') | third_party/typ/typ/runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/typ/typ/host.py
diff --git a/third_party/typ/typ/host.py b/third_party/typ/typ/host.py
index fc9e11304cdb47f4baafac2b52a0753f901dc402..42890db5f5d01be9a81898921a2b3f8bbfd43be6 100644
--- a/third_party/typ/typ/host.py
+++ b/third_party/typ/typ/host.py
@@ -57,7 +57,7 @@ class Host(object):
def add_to_path(self, *comps):
absolute_path = self.abspath(*comps)
if absolute_path not in sys.path:
- sys.path.append(absolute_path)
+ sys.path.insert(0, absolute_path)
nednguyen 2016/06/20 04:33:30 note that this can be disrupted for some project i
Dirk Pranke 2016/06/20 16:19:26 Can you explain further? Are you saying typ should
nednguyen 2016/06/20 17:29:59 Adding this is good for the reason in https://gith
def basename(self, path):
return os.path.basename(path)
« no previous file with comments | « third_party/typ/typ/arg_parser.py ('k') | third_party/typ/typ/runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698