This commit is contained in:
Alon Zakai 2011-10-08 17:39:14 -07:00
Родитель 252869f162
Коммит 0177244ae7
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -9,8 +9,8 @@ import os, unittest, tempfile, shutil, time, inspect, sys, math, glob, tempfile,
# Setup
rootpath = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def path_from_root(*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())
@ -4009,7 +4009,7 @@ class %s(T):
self.pick_llvm_opts(3, True)
COMPILER_TEST_OPTS = ['-g']
shutil.rmtree(self.get_dir()) # Useful in debugging sometimes to comment this out
self.get_dir() # make sure it exists
os.chdir(self.get_dir()) # make sure it exists
TT = %s
''' % (fullname, compiler, llvm_opts, embetter, quantum_size, typed_arrays, fullname))
return TT

Просмотреть файл

@ -1,8 +1,8 @@
import shutil, time, os
from subprocess import Popen, PIPE, STDOUT
rootpath = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def path_from_root(*pathelems):
rootpath = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
return os.path.join(rootpath, *pathelems)
CONFIG_FILE = os.path.expanduser('~/.emscripten')