Closed GoogleCodeExporter closed 9 years ago
hmm k sorry its not a defect i think.
so i used a workaround first generate it in /tmp directory then move it, but
that
would not work under windows. also you should maybe check if mingus is called
from
windows and then start lilypond.exe instead of lilypond.
So os.system would also not work with "filename" filenames dont know why but
os.system is deprecated anyway so it would be better to use subprocess.
the equilalent to os.system is:
p = Popen(cmd, shell=True)
sts = os.waitpid(p.pid, 0)
that works with "" around filenames with spaces.
http://docs.python.org/library/subprocess.html#replacing-os-system
Original comment by s.huchler@gmail.com
on 25 Feb 2009 at 8:42
The spaces problem should be fixed with "". Changing to subprocesses is fine
too.
I can't test on Windows, but I'm not sure if ".exe" needs to be added. Seems to
be
mostly a PATH problem if lilypond can't be found.
Original comment by Rhijnauwen@gmail.com
on 25 Feb 2009 at 9:30
ahh k, i did also not test under windows but when i think about it, i think you
are
right. in dos-console you have not type in xxx.exe, xxx should work also. k i
think
suprocess + "" should fix the problem.
Original comment by s.huchler@gmail.com
on 26 Feb 2009 at 1:22
Excellent, thanks for your report. I will fix this soon.
Original comment by Rhijnauwen@gmail.com
on 27 Feb 2009 at 1:53
Original comment by Rhijnauwen@gmail.com
on 1 Mar 2009 at 5:47
Original issue reported on code.google.com by
s.huchler@gmail.com
on 25 Feb 2009 at 2:29