diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-06-01 13:19:08 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-06-01 13:19:08 +0300 |
commit | 0d2f34654c09def726e3b1d978c45c41a4f08500 (patch) | |
tree | 26828e65c43b01968b581700d2285e1d5bf23ec3 /environment.py | |
parent | e453c408da14448d3ac8ffabb8010aafe8ee9ac0 (diff) | |
download | meson-0d2f34654c09def726e3b1d978c45c41a4f08500.zip meson-0d2f34654c09def726e3b1d978c45c41a4f08500.tar.gz meson-0d2f34654c09def726e3b1d978c45c41a4f08500.tar.bz2 |
Generator rules can have more than one output.
Diffstat (limited to 'environment.py')
-rwxr-xr-x | environment.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/environment.py b/environment.py index 301180e..753c8f0 100755 --- a/environment.py +++ b/environment.py @@ -147,13 +147,12 @@ int main(int argc, char **argv) { os.close(fd) ofile = open(srcname, 'w') code = templ % (prefix, element) - print(code) ofile.write(code) ofile.close() commands = self.get_exelist() commands.append(srcname) commands += self.get_output_flags(exename) - p = subprocess.Popen(commands, cwd=os.path.split(srcname)[0])#s, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + p = subprocess.Popen(commands, cwd=os.path.split(srcname)[0], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) p.communicate() os.remove(srcname) if p.returncode != 0: |