fixed scons 0.96.94 compatibility
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4852 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
216afb19a3
commit
60a6ec28cb
2 changed files with 24 additions and 10 deletions
|
@ -68,9 +68,9 @@ replacement = '<a href="%s/\\1/' % env.subst('$PREFIX_DATA')
|
|||
|
||||
def fix_html(target, source, env):
|
||||
for i in range(len(source)):
|
||||
data = open(str(source[i]),'rb').read()
|
||||
data = open(source[i].path,'rb').read()
|
||||
data = re.sub('<a href="../(Include|Stubs|Plugins|Contrib)/', replacement, data)
|
||||
open(str(target[i]),'wb').write(data)
|
||||
open(target[i].path,'wb').write(data)
|
||||
return None
|
||||
|
||||
if build_chm:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue