Wlodarski / DR-Altimeter

Altitude 'Dead Reckoning' for Casio Triple Sensor v.3
MIT License
0 stars 0 forks source link

_MEIxxxxxx folder is not removed if the program is killed #12

Open Wlodarski opened 4 years ago

Wlodarski commented 4 years ago

https://github.com/pyinstaller/pyinstaller/issues/2379

Wlodarski commented 4 years ago

The other half of https://github.com/Wlodarski/DR-Altimeter/commit/28fe622a0841de9b5827de5d95d7251cf5d20da8 will be include in a subsequent commit

Wlodarski commented 4 years ago

Temporary workaround in place, https://github.com/Wlodarski/DR-Altimeter/commit/2bf8ae4abefcbd3e08cb79964b37d5ba66a645d9

Max1234-Ita commented 1 year ago

pyinstaller/pyinstaller#2379

I had the same issue with a program I was writing in Python 3.10 (being pyinstaller v.5.9.0 the most recent suggested by PyCharm), so I did some improvement to a suggestion that was given in the topic above (https://github.com/pyinstaller/pyinstaller/issues/2379#issuecomment-606631340).

I actually noticed that the number after the "_MEI" prefix (after removing the last digit) is the PID of the launched Python process (i.e. in "_MEI180922", the process PID is 18092) I could write a routine allowing to remove all the _MEI* temp directories not belonging to any running instance of pyinstaller.

The routine is working on Windows, unfortunately I have no way to try it with Linux; Hope this can be useful to someone, until the fix will be available.

Best regards, Max

pyinstaller_cleanup.zip