July 14th, 2012, 07:05 PM
July 14th, 2012, 08:53 PM
Guessing what you might need:
#! /user/bin/env python
# Made in emacs by Lambert Electronics, LLC. USA, NY.
# mmmmm, why do you need to do this in python?
os.environ['CALCDEPS_PATH'] = 'C:/Compiler/ClosureLibrary/closure/bin/'
os.environ['DEPS_PATH'] = 'C:/Compiler/ClosureLibrary/closure/goog/'
os.environ['JAR_PATH'] = 'C:/Compiler/ClosureLibrary/'
os.environ['CLOSURE_PATH'] = 'C:/Compiler/ClosureLibrary/'
os.environ['SCRIPT_PATH'] = 'C:/Compiler/ClosureLibrary/'
os.popen('''python CALCDEPS_PATH/calcdeps.py --input DEPS_PATH/deps.js --input SCRIPT_PATH/Firefly.js --input SCRIPT_PATH/hover.js --output_mode compiled --compiler_jar JAR_PATH/compiler.jar --compiler_flags "--compilation_level=ADVANCED_OPTIMIZATIONS" --compiler_flags "--warning_level=VERBOSE" --compiler_flags "--define=goog.LOCALE='de'" > output-compiled.js''')
[/code] are essential for python code and Makefiles!
July 15th, 2012, 07:20 PM
Because it won't work in .bat as arguments as I couldn't get arguments passed to python script from command prompt.
Originally Posted by b49P23TIvg
And every google doc script I found didn't work for me when ran.
Thank you very much. I appreciate this deeply. Although I now have a different error in that somewhere along the arguments one of the scripts did not like as only empty JS are produced. I'll have to figure out what's not kosher here.