4
This is a helper tool which is designed to make it possible
5
for other apps to read emscripten's configuration variables
6
in a unified way. Usage:
10
This tool prints the value of the variable to stdout if one
11
is found, or exits with 1 if the variable does not exist.
15
from tools import shared
17
if len(sys.argv) != 2 or \
18
not re.match(r"^[\w\W_][\w\W_\d]*$", sys.argv[1]) or \
19
not (sys.argv[1] in dir(shared)):
20
print 'Usage: em-config VAR_NAME'
23
print eval('shared.' + sys.argv[1])