aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-01-28 17:38:04 -0800
committerChad Austin <chad@imvu.com>2013-03-04 19:00:41 -0800
commitc83c53bfe50f8805a0a4ea8bebdac030a2ac53d1 (patch)
tree1043131591245e4836bfaf4f86b2367397f4bae3 /emscripten.py
parent90b9f2199f263f8feaa7ffb16d0c2cb42dcc9275 (diff)
Remove TempFiles's dependency on global and environment variables
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/emscripten.py b/emscripten.py
index 1fc5f190..3ceb0c8e 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -32,7 +32,7 @@ def path_from_root(*pathelems):
"""
return os.path.join(__rootpath__, *pathelems)
-temp_files = shared.TempFiles()
+temp_files = shared.ConfigureTempFiles()
compiler_engine = None
jcache = False
@@ -574,7 +574,7 @@ def main(args):
emscript(args.infile, settings, args.outfile, libraries)
-if __name__ == '__main__':
+def main():
parser = optparse.OptionParser(
usage='usage: %prog [-h] [-H HEADERS] [-o OUTFILE] [-c COMPILER_ENGINE] [-s FOO=BAR]* infile',
description=('You should normally never use this! Use emcc instead. '
@@ -618,3 +618,5 @@ if __name__ == '__main__':
temp_files.run_and_clean(lambda: main(keywords))
+if __name__ == '__main__':
+ main()