Merge pull request #3776 from xonsh/fix_app_execution_alias

Fix app execution aliases on windows
This commit is contained in:
Anthony Scopatz 2020-09-17 13:45:06 -07:00 committed by GitHub
commit ea7e7f351b
Failed to generate hash of commit

View file

@ -184,10 +184,7 @@ def is_app_execution_alias(fname):
Here try to detect if a file is an app execution alias
"""
fname = pathlib.Path(fname)
return (
not os.path.exists(fname)
and fname.name in os.listdir(fname.parent)
)
return not os.path.exists(fname) and fname.name in os.listdir(fname.parent)
def _is_binary(fname, limit=80):