aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/107 postconf
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/107 postconf')
-rw-r--r--test cases/common/107 postconf/postconf.py4
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))