]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/lyxpak.py
Update manual from Ignatio
[lyx.git] / lib / scripts / lyxpak.py
index d9e6176399c9340f5c356be3dfc78c318fa20084..42810947aad0008fd50b871be694164ef48f8908 100755 (executable)
@@ -176,7 +176,7 @@ def find_lyx2lyx(progloc):
 
     # now we will try to query LyX itself to find the path.
     extlist = ['']
-    if os.environ.has_key("PATHEXT"):
+    if "PATHEXT" in os.environ:
         extlist = extlist + os.environ["PATHEXT"].split(os.pathsep)
     lyx_exe, full_path = find_exe(["lyxc", "lyx"], extlist, path)
     if lyx_exe == None: