aboutsummaryrefslogtreecommitdiff
path: root/third_party/demangler.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/demangler.py')
-rw-r--r--third_party/demangler.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/third_party/demangler.py b/third_party/demangler.py
index d875d9a5..1066643b 100644
--- a/third_party/demangler.py
+++ b/third_party/demangler.py
@@ -21,10 +21,11 @@ JS_ENGINE_PARAMS=[]
import os, sys, subprocess, re
-__rootpath__ = os.path.abspath(os.path.dirname(__file__))
+__rootpath__ = os.path.dirname(os.path.abspath(__file__))
def path_from_root(*pathelems):
return os.path.join(os.path.sep, *(__rootpath__.split(os.sep)[:-1] + list(pathelems)))
-exec(open(path_from_root('tools', 'shared.py'), 'r').read())
+sys.path += [path_from_root('')]
+from tools.shared import *
data = open(sys.argv[1], 'r').readlines()