Address more @asottile's review comments

This commit is contained in:
Ville Skyttä
2019-08-15 18:54:08 +03:00
parent 38da98d2d6
commit 562276098c
2 changed files with 4 additions and 2 deletions

View File

@@ -68,6 +68,8 @@ def _find_by_sys_executable():
def _get_default_version(): # pragma: no cover (platform dependent)
# First attempt from `sys.executable` (or the realpath)
exe = _find_by_sys_executable()
if exe:
return exe
# Next try the `pythonX.X` executable
exe = 'python{}.{}'.format(*sys.version_info)