Closed mbercx closed 1 year ago
@gmatteo I couldn't find any other instances of the import. I think the fix is straightforward and should be fine, but is there some way I can test that I haven't broken anything? ^^
@mbercx: Thanks for fixing the problem. The modules in gui are deprecated and will be removed in the next releases so we only need to make sure that monty.os.path.which
does not trigger an ImportError while running the tests with pytest. I will merge your PR and another one before releasing abipy v0.9.5
Summary
The
which
function of themonty.os.path.which
module was deprecated some time ago. Here we replace it with theshutil.which
function, which has been added since Python v3.3