From c83c53bfe50f8805a0a4ea8bebdac030a2ac53d1 Mon Sep 17 00:00:00 2001 From: Chad Austin Date: Mon, 28 Jan 2013 17:38:04 -0800 Subject: Remove TempFiles's dependency on global and environment variables --- emscripten.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'emscripten.py') 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() -- cgit v1.2.3-18-g5258