Diff
Differences From Artifact [76217753ec]:
- File compat2and3.py — part of check-in [fc5214876f] at 2017-01-22 16:43:48 on branch trunk — Add `urlquote` (user: Oliver, size: 1651) [annotate] [blame] [check-ins using]
To Artifact [d9ad9f648c]:
- File compat2and3.py — part of check-in [2c95973b5a] at 2018-07-05 03:46:51 on branch trunk — Fix missing os. import for find_executable fallback. (user: mario, size: 1665) [annotate] [blame] [check-ins using]
64 65 66 67 68 69 70 71 72 73 74 75 | 64 65 66 67 68 69 70 71 72 73 74 75 76 | + | # Both # find_executable() is only needed by channels/configwin try: from distutils.spawn import find_executable except: import os def find_executable(bin): exists = [os.path.exists(dir+"/"+bin) for dir in os.environ.get("PATH").split(":")+["/"]] return exists[0] if len(exists) else None |