fix bug with path creation
This commit is contained in:
Родитель
526f43d343
Коммит
f7bab2b692
|
@ -9,9 +9,9 @@ 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)
|
||||
return os.path.join(__rootpath__, *pathelems)
|
||||
exec(open(path_from_root('tools', 'shared.py'), 'r').read())
|
||||
|
||||
# Sanity check for config
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
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)
|
||||
return os.path.join(__rootpath__, *pathelems)
|
||||
|
||||
CONFIG_FILE = os.path.expanduser('~/.emscripten')
|
||||
if not os.path.exists(CONFIG_FILE):
|
||||
|
|
Загрузка…
Ссылка в новой задаче