mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
fix broken symlink issue on windows
This commit is contained in:
parent
10f67def3c
commit
1102e1b8de
2 changed files with 28 additions and 1 deletions
23
news/broke-sym.rst
Normal file
23
news/broke-sym.rst
Normal file
|
@ -0,0 +1,23 @@
|
|||
**Added:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Changed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Deprecated:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Removed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* Made ``$PATH`` searching more robust to broken symlinks on Windows.
|
||||
|
||||
**Security:**
|
||||
|
||||
* <news item>
|
|
@ -790,7 +790,11 @@ def _executables_in_windows(path):
|
|||
yield fname
|
||||
else:
|
||||
for x in scandir(path):
|
||||
if x.is_file():
|
||||
try:
|
||||
is_file = x.is_file()
|
||||
except OSError:
|
||||
continue
|
||||
if is_file:
|
||||
fname = x.name
|
||||
else:
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue