From 3b2ba69a4fc38f48c2e9dfa5077feec77a5eec35 Mon Sep 17 00:00:00 2001 From: mittorn Date: Tue, 31 Oct 2023 05:12:27 +0300 Subject: [PATCH] wscript: get node path from waf instead of using relative path --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index 02efd884..0ea0c636 100644 --- a/wscript +++ b/wscript @@ -211,7 +211,7 @@ def configure(conf): conf.msg(msg='-> processing mod options', result='...', color='BLUE') regex = re.compile('^([A-Za-z0-9_]+)=([A-Za-z0-9_]+)\ \#\ (.*)$') - with open('mod_options.txt') as fd: + with open(str(conf.path.make_node('mod_options.txt'))) as fd: lines = fd.readlines() for line in lines: m = regex.match(line.strip())