]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/lyxpreview2bitmap.py
make sure docs are disted
[lyx.git] / lib / scripts / lyxpreview2bitmap.py
index d7802edf70844ecc888e7321ee2637ed9ca2048b..bb7438bf066c31ea32cb345bd3d04bab6333f376 100755 (executable)
@@ -67,7 +67,11 @@ def error(message):
 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