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

Unified Diff: llvm2iceinsts.py

Issue 317963002: Make py import not assume dir is "pnacl-subzero". Avoid autovect in crosstest. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: no need for disable-opt Created 6 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 | « no previous file | pydir/build-pnacl-ir.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: llvm2iceinsts.py
diff --git a/llvm2iceinsts.py b/llvm2iceinsts.py
index b04505fed219b906f5fcde98b102ea5bc2faa80a..29ddd145fa7d526d0c2fc4ef6de53474a0c7a1e9 100755
--- a/llvm2iceinsts.py
+++ b/llvm2iceinsts.py
@@ -7,10 +7,7 @@ import re
import subprocess
import sys
-for p in sys.path:
- if p.endswith('/toolchain_build/src/pnacl-subzero'):
- sys.path.insert(0, p + '/pydir')
- break
+sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'pydir'))
from utils import shellcmd
« no previous file with comments | « no previous file | pydir/build-pnacl-ir.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698