How to delete source?
2015-03-31 00:36:26 GMT
I fetch a file on the internet and store it as a temporary file. When I'm doing playing it I want to delete it. I do something like the following, where self._player is a pyglet.media.Player. self._source is a streaming store created from the temporary file. self._tmp_fn is the temporary filename.
def close(self, args=None):
self._player = None
self._source = None
self._tmp_fn = None
Seems okay but on windows when I try to delete self._tmp_fn I get:
How do I make sure pyglet isn't using the file any more so I can delete it?
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.