Browse Source

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

fix-cwd-path
mittorn 1 year ago
parent
commit
3b2ba69a4f
  1. 2
      wscript

2
wscript

@ -211,7 +211,7 @@ def configure(conf):
conf.msg(msg='-> processing mod options', result='...', color='BLUE') conf.msg(msg='-> processing mod options', result='...', color='BLUE')
regex = re.compile('^([A-Za-z0-9_]+)=([A-Za-z0-9_]+)\ \#\ (.*)$') 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() lines = fd.readlines()
for line in lines: for line in lines:
m = regex.match(line.strip()) m = regex.match(line.strip())

Loading…
Cancel
Save