Hi,
I noticed that s = audio.Sound.open('C:\\file.amr') appends instead of overrides. What's the proper way to override the file?
Cheers,
Berco
Hi,
I noticed that s = audio.Sound.open('C:\\file.amr') appends instead of overrides. What's the proper way to override the file?
Cheers,
Berco
Delete it e.g. withOriginally posted by bercobeute
I noticed that s = audio.Sound.open('C:\\file.amr') appends instead of overrides. What's the proper way to override the file?
if the file exists. There should be an argument to specify the wanted behaviour (e.g. 'n', 'a') but this is not implemented.Code:os.unlink("c:\\foobar.wav")
Notice though that quite many of the Python for Series 60 API calls are expecting the filenames to be in Unicode, i.e.
Code:u'C:\\foobar.wav'