]> git.lyx.org Git - lyx.git/commit
configure.py: Check path accessibility before call to os.path.isfile.
authorJulien Rioux <jrioux@lyx.org>
Mon, 4 Feb 2013 14:45:14 +0000 (15:45 +0100)
committerJulien Rioux <jrioux@lyx.org>
Tue, 14 May 2013 09:26:43 +0000 (11:26 +0200)
commitef04549d8d0337573d5d856929a108c3132f93b7
tree5df159fcd4ed249120061b82191835c20e7d9855
parentebddec15de6c4c807c18f6dac2b4f0cc94c3b642
configure.py: Check path accessibility before call to os.path.isfile.

If you have an unmounted dir, ac_dir, in your PATH, the call to

os.path.isfile( os.path.join(ac_dir, ac_word + ext) )

hangs. This is probably a python bug, but the result of configure.py
hanging and LyX freezing is really bad, hence this workaround.

According to the python docs, MacOS doesn't provide os.access();
the hasattr protection is used for this reason.
lib/configure.py