james-see / iptcinfo3

iptcinfo working for python 3 finally do pip3 install iptcinfo3
51 stars 31 forks source link

A temporary file with ~ at the end #38

Open fdrov opened 1 year ago

fdrov commented 1 year ago

Hi! Thx for the lib. After info.save() it creates a temporary file with ~ at the end. Windows 11, python 3.9. There is any way to close file, something like info.close()?

james-see commented 11 months ago

I have to look into it, and PR would be reviewed related to this if you want to try to implement something.

cwpearson commented 11 months ago

Created here, I think

https://github.com/james-see/iptcinfo3/blob/dfbfd902f64205ad42517dce288b46e06bc4b585/iptcinfo3.py#L700

It seems like it's intended to not create this file if you do something like .save('overwrite') or .save(options='overwrite') but that doesn't work for me.

james-see commented 10 months ago

I don't have time to look into this, I would just add a line in python to remove it if you really want to force remove that. I think it should auto-clean that up when the code completes. If someone wants to sponsor this project I can look back at it.

james-ro-williams commented 5 months ago

This issue has been fixed in this PR: https://github.com/james-see/iptcinfo3/pull/29. However, the version has not been updated on PyPI meaning that people can't get to it.

james-see commented 5 months ago

This issue has been fixed in this PR: https://github.com/james-see/iptcinfo3/pull/29. However, the version has not been updated on PyPI meaning that people can't get to it.

I thought it was updated in pypi? I will check on this. Thanks for the heads up.