+2004-05-19 Angus Leeming <leeming@lyx.org>
+
+ * scripts/lyxpreview2bitmap.py (find_exe):
+ * scripts/legacy_lyxpreview2ppm.py (find_exe): append ".exe" to the
+ program name on Win32.
+
2004-05-18 Angus Leeming <leeming@lyx.org>
* legacy_lyxpreview2ppm.py: search for "gswin32" also when looking
def find_exe(candidates, path):
for prog in candidates:
for directory in path:
- full_path = os.path.join(directory, prog)
+ if os.name == "nt":
+ full_path = os.path.join(directory, prog + ".exe")
+ else:
+ full_path = os.path.join(directory, prog)
+
if os.access(full_path, os.X_OK):
return full_path
def find_exe(candidates, path):
for prog in candidates:
for directory in path:
- full_path = os.path.join(directory, prog)
+ if os.name == "nt":
+ full_path = os.path.join(directory, prog + ".exe")
+ else:
+ full_path = os.path.join(directory, prog)
+
if os.access(full_path, os.X_OK):
return full_path