mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
commit
e20b9b3008
2 changed files with 17 additions and 1 deletions
14
news/path34.rst
Normal file
14
news/path34.rst
Normal file
|
@ -0,0 +1,14 @@
|
|||
**Added:** None
|
||||
|
||||
**Changed:** None
|
||||
|
||||
**Deprecated:** None
|
||||
|
||||
**Removed:** None
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* No longer raises an error if a directory in ``$PATH`` does not exist on
|
||||
Python v3.4.
|
||||
|
||||
**Security:** None
|
|
@ -482,7 +482,9 @@ def _yield_accessible_unix_file_names(path):
|
|||
|
||||
|
||||
def _executables_in_posix(path):
|
||||
if PYTHON_VERSION_INFO < (3, 5, 0):
|
||||
if not os.path.exists(path):
|
||||
return
|
||||
elif PYTHON_VERSION_INFO < (3, 5, 0):
|
||||
for fname in os.listdir(path):
|
||||
fpath = os.path.join(path, fname)
|
||||
if (os.path.exists(fpath) and
|
||||
|
|
Loading…
Add table
Reference in a new issue