diff options
author | Nicolas Schneider <nioncode+git@gmail.com> | 2016-03-03 22:28:56 +0100 |
---|---|---|
committer | Nicolas Schneider <nioncode+git@gmail.com> | 2016-03-03 22:28:56 +0100 |
commit | 749aeefe0cb4a7452d95249c9dac4c87e1e414b0 (patch) | |
tree | e0b81e08fdfd2c89def13335af39b63161d6a3b1 /test cases/common/107 postconf | |
parent | 5498f16fb35717a3175e61bf65666c43089efc30 (diff) | |
download | meson-749aeefe0cb4a7452d95249c9dac4c87e1e414b0.zip meson-749aeefe0cb4a7452d95249c9dac4c87e1e414b0.tar.gz meson-749aeefe0cb4a7452d95249c9dac4c87e1e414b0.tar.bz2 |
pass meson source and build dirs as env variables for postconf scripts
Diffstat (limited to 'test cases/common/107 postconf')
-rw-r--r-- | test cases/common/107 postconf/postconf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/common/107 postconf/postconf.py b/test cases/common/107 postconf/postconf.py index d185f94..209b7af 100644 --- a/test cases/common/107 postconf/postconf.py +++ b/test cases/common/107 postconf/postconf.py @@ -7,5 +7,5 @@ template = '''#pragma once #define THE_NUMBER {} ''' -data = open(os.path.join(sys.argv[1], 'raw.dat')).readline().strip() -open(os.path.join(sys.argv[2], 'generated.h'), 'w').write(template.format(data)) +data = open(os.path.join(os.environ['MESON_SOURCE_ROOT'], 'raw.dat')).readline().strip() +open(os.path.join(os.environ['MESON_BUILD_ROOT'], 'generated.h'), 'w').write(template.format(data)) |