1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 def main(output
, css_properties
, exe
):
11 # moz.build passes in the exe name without any path, so to run it we need to
13 run_exe
= exe
if os
.path
.isabs(exe
) else "./%s" % exe
15 # Use universal_newlines so everything is '\n', which gets converted to
16 # '\r\n' when writing out the file in Windows.
17 data
= subprocess
.check_output([run_exe
], universal_newlines
=True)
18 with
open(css_properties
) as f
:
23 if __name__
== "__main__":
24 main(sys
.stdout
, *sys
.argv
[1:])