Timeline for Closing a file so I can delete it on Windows in Python?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 30, 2015 at 22:22 | comment | added | user4453877 | If you have an open source access to your module and you use it into your own python code, then you may want to alter the code of your black_box and add a 'fileObject.close()' line before the 'return' line of your black_box. You will then be able to access the file normally. | |
Jun 30, 2015 at 22:14 | comment | added | vfxGer | But I imported the black_box module. I would have to kill the current python program. | |
Jun 30, 2015 at 21:36 | history | answered | user4453877 | CC BY-SA 3.0 |