Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Js2py leaves directory in /tmp whenever it is imported #294

Open
oliver opened this issue Nov 10, 2022 · 0 comments
Open

Js2py leaves directory in /tmp whenever it is imported #294

oliver opened this issue Nov 10, 2022 · 0 comments

Comments

@oliver
Copy link

oliver commented Nov 10, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant