Browse Source

normalize path

pull/232/head
Oliverpool 9 years ago
parent
commit
bd22c136c3
  1. 4
      test/test_content/test_content.py

4
test/test_content/test_content.py

@ -78,7 +78,9 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
test_path = files.path2posix(resource_filename(__name__, ""))+"/" test_path = files.path2posix(resource_filename(__name__, ""))+"/"
for key in ['song', 'tex']: for key in ['song', 'tex']:
if key in elem: if key in elem:
elem[key] = os.path.normpath(elem[key]).replace(test_path, "") elem[key] = files.path2posix(
os.path.normpath(elem[key])
).replace(test_path, "")
return elem return elem
@classmethod @classmethod

Loading…
Cancel
Save