diff --git a/lib/scripts/lyxpreview_tools.py b/lib/scripts/lyxpreview_tools.py index c060f9e526..447e25fb63 100644 --- a/lib/scripts/lyxpreview_tools.py +++ b/lib/scripts/lyxpreview_tools.py @@ -61,7 +61,7 @@ def make_texcolor(hexcolor, graphics): def find_exe(candidates, path): extlist = [''] - if "PATHEXT" in os.environ.has_key: + if "PATHEXT" in os.environ: extlist = extlist + os.environ["PATHEXT"].split(os.pathsep) for prog in candidates: