Js2Py icon indicating copy to clipboard operation
Js2Py copied to clipboard

Js2py leaves directory in /tmp whenever it is imported

Open oliver opened this issue 3 years ago • 0 comments

It looks like the statement import js2py will cause an (empty) directory to be created in /tmp/, which will not be removed after the process has exited. I had a Python process which used Js2py and which (due to some unrelated bug) was restarted all the time; and on each start it created an empty directory in /tmp/, e.g. /tmp/tmpe1ira7kj/. After a few days there were several hundred thousand empty directories. Since each directory took 4 KB of disk space, they took up some hundred MB of temp space.

Would it be possible to delete the directories when the process ends, e.g. with the atexit module?

Also, it would be great if the name of the new directory mentioned Js2py, to make it easier to find out where the directory comes from.

oliver avatar Nov 10 '22 20:11 oliver