+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
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