EarthCubeInGeo / resen

GNU General Public License v3.0
7 stars 3 forks source link

[BUGFIX]: Better lockfile logic #71

Closed asreimer closed 4 years ago

asreimer commented 4 years ago

This PR fixes #14.

I've tested it in both Fedora 31 python3.7 and Windows 10, both OSes using python3.7.

To test: 1) install the version of resen in this branch (fix_lockfile) 2) open 2 terminals and try to import the Resen class in each. One should succeed and one should fail. 3) now close the terminal window in which importing resen succeeded. This will kill everything without cleaning up the lockfile (check that the lock file is still there). Finally, try to import the Resen class again and it should succeed.