mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 05:40:59 +00:00
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:
parent
a0fe542507
commit
132d2a2da7
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user