csound C:\Python24\Lib\site-packages\boa-constructor\test of snake\csd files\c.z.robertson-praleck_brome.csd
and what I need is just
csound c.z.robertson-praleck_brome.csd
The batch file just doesn't run with the entire file name
If there is a way to generate it as a shortcut instead it would be even cooler (The people that do panda3d have been able to do that)
Expand|Select|Wrap|Line Numbers
- def create_csd_bat(self):
- "Creates a .bat file that executes a .csd file only works with windows"
- dlg = wx.FileDialog(self,"load csd file", ".", "", "*.csd", wx.OPEN)
- try:
- if dlg.ShowModal() == wx.ID_OK:
- filename = dlg.GetPath()
- # Your code
- csdfilename = filename[:-4]
- #linetest = '\\'
- #csdwritename = test = line.split('\\')
- outfile = open(csdfilename + '.bat', 'w')
- outfile.write('csound '+ filename)
- finally:
- dlg.Destroy()