[GRASS-dev] [GRASS GIS] #3773: shutil_which() throws an exception on Linux + Python 3

GRASS GIS trac at osgeo.org
Wed Mar 6 22:55:50 PST 2019


#3773: shutil_which() throws an exception on Linux + Python 3
--------------------------+-------------------------
  Reporter:  pmav99       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.8.0
 Component:  Python       |    Version:  svn-trunk
Resolution:               |   Keywords:  python3
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by neteler):

 Replying to [ticket:3773 pmav99]:
 > A possible resolution could be:
 >
 > {{{
 > import six
 >
 > if six.PY3:
 >     shutil_which = shutil.which
 > else:
 >     def shutil_which(...):
 >         # ...
 > }}}

 Could you please provide a patch? I can also grab it from github if that's
 easier for you.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3773#comment:3>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list