wscript: get node path from waf instead of using relative path

This commit is contained in:
mittorn 2023-10-31 05:12:27 +03:00
parent 3cf40ccf12
commit 3b2ba69a4f
1 changed files with 1 additions and 1 deletions

View File

@ -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())