On Thursday 14 September 2006 21:59, Rainer Dorsch wrote:
> Any ideas here?
Yes, this method was implemented in python 2.2.2 and you 2.2.1. :-D
I attach a patch that fixes yesterday problem and another similar as well.
Please apply to the original file.
> Thanks,
> Rainer
--
José Abílio
Index: configure.py
===================================================================
--- configure.py (revision 14998)
+++ configure.py (working copy)
@@ -106,7 +106,7 @@
os.close(fd)
inpname = cmdOutput('cygpath -m ' + tmpfname)
latex_out = cmdOutput(r'latex "\nonstopmode\input{%s}"' % inpname)
- if 'Error' in latex_out:
+ if latex_out.find('Error') != -1:
print "configure: TeX engine needs posix-style paths in latex files"
windows_style_tex_paths = 'false'
else:
@@ -579,7 +579,10 @@
for line in open('chkconfig.vars').readlines():
key, val = re.sub('-', '_', line).split('=')
val = val.strip()
- values[key] = val.strip("'")
+ tmp = val.split("'")
+ while tmp and not tmp[0]: tmp = tmp[1:]
+ while tmp and not tmp[-1]: tmp = tmp[:-1]
+ values[key] = "'".join(tmp)
# chk_fontenc may not exist
try:
addToRC(r'\font_encoding "%s"' % values["chk_fontenc"])
@@ -652,7 +655,7 @@
latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """)
else:
latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """)
- if 'working' in latex_out:
+ if latex_out.find('working') != -1:
print 'yes'
tex_allows_spaces = 'true'
else: