aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-04-02 16:24:14 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2013-04-04 13:43:39 +0700
commitd43e5283a483e43d31dae1c8236f3499e4bbd577 (patch)
tree3b848b7a2c49b1b77c2cd4e08d1780f29e601e6b
parent927355084b711b8aaf54668ab791a4693cf45aaf (diff)
Make get_configuration() a global.
-rwxr-xr-xemscripten.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/emscripten.py b/emscripten.py
index d41aaa2c..c6a08e6a 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -20,6 +20,15 @@ def path_from_root(*pathelems):
"""
return os.path.join(__rootpath__, *pathelems)
+def get_configuration():
+ if hasattr(get_configuration, 'configuration'):
+ return get_configuration.configuration
+
+ from tools import shared
+ configuration = shared.Configuration(environ=os.environ)
+ get_configuration.configuration = configuration
+ return configuration
+
def scan(ll, settings):
# blockaddress(@main, %23)
blockaddrs = []
@@ -683,15 +692,6 @@ WARNING: You should normally never use this! Use emcc instead.
else:
relooper = None # use the cache
- def get_configuration():
- if hasattr(get_configuration, 'configuration'):
- return get_configuration.configuration
-
- from tools import shared
- configuration = shared.Configuration(environ=os.environ)
- get_configuration.configuration = configuration
- return configuration
-
if keywords.temp_dir is None:
temp_files = get_configuration().get_temp_files()
else: