mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 15:43:10 -10:00
The inputs to scripts for GENERATED_FILES are restricted to filenames only. We have several examples in the tree, however, where a script takes non-filename arguments. For converting those cases to use GENERATED_FILES, we first need to provide some way of "injecting" non-filename arguments into the script. This commit adds a method for doing that, by extending the .script flag on GENERATED_FILES to include an optional method name: f = GENERATED_FILES['foo'] f.script = 'script.py:make_foo' will invoke the make_foo function found in script.py instead of the function named main.
This directory contains common Python code. The basic rule is that if Python code is cross-module (that's "module" in the Mozilla meaning - as in "module ownership") and is MPL-compatible, it should go here. What should not go here: * Python that is not MPL-compatible (see other-licenses/) * Python that has good reason to remain close to its "owning" (Mozilla) module (e.g. it is only being consumed from there). Historical information can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=775243 ## pyyaml | pystache Used in taskcluster related mach commands to update download from github and remove .git and tests. Then run tests in taskcluster/tests/