Roger Binns
2005-01-17 01:36:37 UTC
pvconv=gethelperbinary('pvconv')
- run(pvconv, shortfilename(wavfile), shortfilename(qcpfile))
+ w_name=shortfilename(wavfile)
+ q_name=common.stripext(w_name)+'.qcp'
+ os.remove(q_name)
+ pass
+ # Have not figured out how to specify output file for pvconv
+ run(pvconv, w_name)
+ # mv output file to qcpfile
+ os.remove(qcpfile)
+ pass
+ os.rename(q_name, qcpfile)
Joe, What is the actual reason behind making this change? The code as it- run(pvconv, shortfilename(wavfile), shortfilename(qcpfile))
+ w_name=shortfilename(wavfile)
+ q_name=common.stripext(w_name)+'.qcp'
+ os.remove(q_name)
+ pass
+ # Have not figured out how to specify output file for pvconv
+ run(pvconv, w_name)
+ # mv output file to qcpfile
+ os.remove(qcpfile)
+ pass
+ os.rename(q_name, qcpfile)
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