diff options
author | SiggyBar <sigmund_vik@yahoo.com> | 2011-09-23 13:43:44 +0300 |
---|---|---|
committer | SiggyBar <sigmund_vik@yahoo.com> | 2011-09-23 13:43:44 +0300 |
commit | 436f1100fc819f394f2d9dfe3117024fb1df597d (patch) | |
tree | a19a795044571c95f5f42394befccdae9fadad6f | |
parent | 3d07ab5d9fb0d6574549e36f6d1d5b331f8595ba (diff) |
Edited tools/exec_llvm.py via GitHub
-rwxr-xr-x | tools/exec_llvm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/exec_llvm.py b/tools/exec_llvm.py index aa18aa2b..840966e6 100755 --- a/tools/exec_llvm.py +++ b/tools/exec_llvm.py @@ -36,9 +36,9 @@ the .ll into native code. This can be done as follows: import os, sys from subprocess import Popen, PIPE, STDOUT -abspath = os.path.abspath(os.path.dirname(__file__)) def path_from_root(*pathelems): - return os.path.join(os.path.sep, *(abspath.split(os.sep)[:-1] + list(pathelems))) + rootpath = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + return os.path.join(rootpath, *pathelems) exec(open(path_from_root('tools', 'shared.py'), 'r').read()) print '// EXEC_LLVM: ', sys.argv |