Do you have an outer python program with some control loop and inside that
loop you are initializing pygame, generating the mp3, quitting pygame and
then deleting the file in the same program? If so, I don't think that's how
pygame is meant to be used. Why don't you initialize it once and not quit
until the program is terminated? You might need to also purge the event
queue of pygame too. I agree though, need to see code.

On May 28, 2017 8:55 AM, "Noel Garwick" <noel.garw...@gmail.com> wrote:

> Could you post the source somewhere?
>
> I think another reason those files are staying locked could be if you
> aren't calling filename.close()
>
> On May 28, 2017 4:19 AM, "Gameskiller01" <nathanq620...@gmail.com> wrote:
>
>> It already does.
>>
>>
>>
>> --
>> View this message in context: http://pygame-users.25799.x6.n
>> abble.com/Pygame-doesn-t-close-properly-so-I-can-t-delete-
>> the-file-it-s-using-tp3044p3046.html
>> Sent from the pygame-users mailing list archive at Nabble.com.
>>
>

Reply via email to