py-solc-x icon indicating copy to clipboard operation
py-solc-x copied to clipboard

use shutil.move instead of os.rename to avoid crashes during install

Open RomiRand opened this issue 3 years ago • 0 comments

os.rename crashes in certain scenarios (just happened to me), see the python docs. shutil.move handles these cases better, also see this question on stackoverflow.

What I did

Replaced os.rename with shutil.move.

Checklist

  • [x] I have confirmed that my PR passes all linting checks
  • [ ] I have included test cases
  • [ ] I have updated the documentation (README.md)
  • [ ] I have added an entry to the changelog

RomiRand avatar Mar 25 '22 14:03 RomiRand