Buckets:
| #!/usr/bin/env python3 | |
| # Copyright 2012 The Emscripten Authors. All rights reserved. | |
| # Emscripten is available under two separate licenses, the MIT license and the | |
| # University of Illinois/NCSA Open Source License. Both these licenses can be | |
| # found in the LICENSE file. | |
| """Display emscripten configure file settings. | |
| Helper script which is designed to make it possible for | |
| other apps to read emscripten's configuration variables | |
| in a unified way. Usage: | |
| em-config VAR_NAME | |
| This tool prints the value of the variable to stdout if one | |
| is found, or exits with 1 if the variable does not exist. | |
| """ | |
| import re | |
| import sys | |
| from tools import config | |
| def main(): | |
| if len(sys.argv) != 2 or \ | |
| not re.match(r"^[\w\W_][\w\W_\d]*$", sys.argv[1]) or \ | |
| not hasattr(config, sys.argv[1]): | |
| print('Usage: em-config VAR_NAME', file=sys.stderr) | |
| sys.exit(1) | |
| print(getattr(config, sys.argv[1])) | |
| return 0 | |
| if __name__ == '__main__': | |
| sys.exit(main()) | |
Xet Storage Details
- Size:
- 963 Bytes
- Xet hash:
- 617147e972191d40c5f7b61983955c47907cbcdc826a640da9abfed6feab0f07
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.