Add backports.shutil_which

This commit is contained in:
Robin Dunn
2019-05-31 08:46:20 -07:00
parent d29f17353e
commit b4239a3813
2 changed files with 7 additions and 0 deletions

View File

@@ -32,6 +32,12 @@ try:
except ImportError:
import pathlib2 as pathlib
try:
from shutil import which
except ImportError:
from backports.shutil_which import which
from distutils.dep_util import newer, newer_group
from buildtools.config import Config, msg, opj, posixjoin, loadETG, etg2sip, findCmd, \
phoenixDir, wxDir, copyIfNewer, copyFile, \

View File

@@ -10,3 +10,4 @@ pytest
pytest-xdist
pytest-timeout
pathlib2 ; python_version < "3"
backports.shutil_which ; python_version < "3"