Enable instant preview to work if the path to GhostScript contains spaces (bug

2193).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10710 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2006-01-05 14:13:14 +00:00
parent a0fe542507
commit 132d2a2da7
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-01-05 Angus Leeming <leeming@lyx.org>
* scripts/lyxpreview_tools.py (find_exe): return only the basename of
the executable to avoid problems when the path to the exe contains
spaces. Fixes bug 2193.
2006-01-02 Michael Gerz <michael.gerz@teststep.org>
* layouts/amsart-seq.layout: fix typo in counter

View File

@ -52,7 +52,11 @@ def find_exe(candidates, path):
full_path = os.path.join(directory, prog)
if os.access(full_path, os.X_OK):
return full_path
# The thing is in the PATH already (or we wouldn't
# have found it). Return just the basename to avoid
# problems when the path to the executable contains
# spaces.
return os.path.basename(full_path)
return None