Various IMP modules (e.g. IMP.pmi, IMP.sampcon) do a lot of path manipulation, usually via ugly string concatenation, sometimes using os.path.join. Consider making IMP require the pathlib module and replacing some or all of this code with the much nicer Path class. This would require Python 3.4 or later, although users that still insist on Python 2 can get pathlib backported to Python 2 (for example, RHEL 7 provides a python-pathlib RPM, or pip install pathlib should work).
Various IMP modules (e.g.
IMP.pmi
,IMP.sampcon
) do a lot of path manipulation, usually via ugly string concatenation, sometimes usingos.path.join
. Consider making IMP require thepathlib
module and replacing some or all of this code with the much nicerPath
class. This would require Python 3.4 or later, although users that still insist on Python 2 can get pathlib backported to Python 2 (for example, RHEL 7 provides apython-pathlib
RPM, orpip install pathlib
should work).