Browse Source

Quick fixes

pull/142/head
Oliverpool 9 years ago
parent
commit
b96fc1675f
  1. 2
      patacrep/content/song.py
  2. 3
      test/test_compilation/test_compilation.py

2
patacrep/content/song.py

@ -42,7 +42,7 @@ class SongRenderer(Content):
{song} {song}
""").format( """).format(
separator="%"*80, separator="%"*80,
path=self.song.subpath, path=files.path2posix(self.song.subpath),
song=self.song.render(output=context['filename']), song=self.song.render(output=context['filename']),
) )

3
test/test_compilation/test_compilation.py

@ -109,8 +109,7 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
command, command,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
universal_newlines=True, universal_newlines=True,
cwd=os.path.dirname(songbook), cwd=os.path.dirname(songbook)
env=current_env
) )
return 0 return 0
except subprocess.CalledProcessError as error: except subprocess.CalledProcessError as error:

Loading…
Cancel
Save