constructor so that shlex.sourcehook() properly joins
relative paths.
svn path=/main/trunk/; revision=9054
raise
return None
try:
- lex = shlex.shlex(f, posix=True)
+ # The default shlex.sourcehook() implementation
+ # only joins relative paths when the infile
+ # attribute is properly set.
+ lex = shlex.shlex(f, infile=mycfg, posix=True)
lex.wordchars=string.digits+string.letters+"~!@#$%*_\:;?,./-+{}"
lex.quotes="\"'"
if allow_sourcing: