mirror of
https://github.com/kastdeur/lilydrum.git
synced 2024-12-23 01:33:32 +01:00
Error with locally included files fixed
This commit is contained in:
parent
a6e449a91b
commit
b2c758c36c
1 changed files with 0 additions and 3 deletions
3
makedrum
3
makedrum
|
@ -152,7 +152,6 @@ class MakeDrum:
|
||||||
if not self.args.log:
|
if not self.args.log:
|
||||||
print()
|
print()
|
||||||
lilyout = os.path.join(self.RUN_DIR, self.args.out_dir, os.path.basename(tmp_file).replace(self.TMP_PREFIX, '').replace(".ly", ''))
|
lilyout = os.path.join(self.RUN_DIR, self.args.out_dir, os.path.basename(tmp_file).replace(self.TMP_PREFIX, '').replace(".ly", ''))
|
||||||
print (lilyout)
|
|
||||||
lilycmd = self.LILYPOND+' --pdf --output='+lilyout+' '+tmp_file+log
|
lilycmd = self.LILYPOND+' --pdf --output='+lilyout+' '+tmp_file+log
|
||||||
|
|
||||||
if os.system(lilycmd) != 0:
|
if os.system(lilycmd) != 0:
|
||||||
|
@ -196,8 +195,6 @@ class MakeDrum:
|
||||||
# set up a tmp file with template and file combined
|
# set up a tmp file with template and file combined
|
||||||
tmp_file = os.path.join(tmp_dir, self.TMP_PREFIX + os.path.relpath(file).replace('../music-','',1).replace('/', '-'))
|
tmp_file = os.path.join(tmp_dir, self.TMP_PREFIX + os.path.relpath(file).replace('../music-','',1).replace('/', '-'))
|
||||||
|
|
||||||
print(file + ' is to be templated')
|
|
||||||
print(tmp_file + ' is templated file')
|
|
||||||
out_file = codecs.open(tmp_file, 'w+', 'utf8')
|
out_file = codecs.open(tmp_file, 'w+', 'utf8')
|
||||||
out_file.write(u'\ufeff')
|
out_file.write(u'\ufeff')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue