]> git.lyx.org Git - features.git/commitdiff
More has_key replacements.
authorRichard Heck <rgheck@comcast.net>
Mon, 14 Feb 2011 02:30:44 +0000 (02:30 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 14 Feb 2011 02:30:44 +0000 (02:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37647 a592a061-630c-0410-9148-cb99ea01b6c8

lib/scripts/lyxpak.py
lib/scripts/lyxpreview_tools.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:
index 7d22b6514a1273f7f68df9b88f6ed709b3b53537..c060f9e5266abf14b1b71dba182306e689bb12d4 100644 (file)
@@ -61,7 +61,7 @@ def make_texcolor(hexcolor, graphics):
 
 def find_exe(candidates, path):
     extlist = ['']
-    if os.environ.has_key("PATHEXT"):
+    if "PATHEXT" in os.environ.has_key:
         extlist = extlist + os.environ["PATHEXT"].split(os.pathsep)
 
     for prog in candidates: