Re: [bitpim-cvs-checkins] bitpim conversions.py,1.21,1.22 midifile.py,1.2,1.3
"Roger Binns" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <001e01c4fc34$fc6ce370$3501a8c0@rogersqyvr14d3> |
> def convertwavtoqcp(wavfile, qcpfile):
> pvconv=gethelperbinary('pvconv')
> - run(pvconv, shortfilename(wavfile), shortfilename(qcpfile))
> + w_name=shortfilename(wavfile)
> + q_name=common.stripext(w_name)+'.qcp'
> + try:
> + os.remove(q_name)
> + except:
> + pass
> + # Have not figured out how to specify output file for pvconv
> + run(pvconv, w_name)
> + # mv output file to qcpfile
> + try:
> + os.remove(qcpfile)
> + except:
> + pass
> + os.rename(q_name, qcpfile)
Joe, What is the actual reason behind making this change? The code as it
was worked perfectly! The only place calling these functions was in
ringers and it worked fine, and quite easily got the relevant filename
by calling common.gettempfilename("extension").
Roger
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt