From b96fc1675f7ba2f56a98b453ca2a2d6d11b87241 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 29 Oct 2015 23:41:13 +0100 Subject: [PATCH] Quick fixes --- patacrep/content/song.py | 2 +- test/test_compilation/test_compilation.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/patacrep/content/song.py b/patacrep/content/song.py index 71473aa8..4f9ab809 100755 --- a/patacrep/content/song.py +++ b/patacrep/content/song.py @@ -42,7 +42,7 @@ class SongRenderer(Content): {song} """).format( separator="%"*80, - path=self.song.subpath, + path=files.path2posix(self.song.subpath), song=self.song.render(output=context['filename']), ) diff --git a/test/test_compilation/test_compilation.py b/test/test_compilation/test_compilation.py index ab032389..bcdb365b 100644 --- a/test/test_compilation/test_compilation.py +++ b/test/test_compilation/test_compilation.py @@ -109,8 +109,7 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): command, stderr=subprocess.STDOUT, universal_newlines=True, - cwd=os.path.dirname(songbook), - env=current_env + cwd=os.path.dirname(songbook) ) return 0 except subprocess.CalledProcessError as error: