mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
wscript: get node path from waf instead of using relative path
This commit is contained in:
parent
3cf40ccf12
commit
3b2ba69a4f
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…
Reference in New Issue
Block a user