Browse Source

normalize path

pull/232/head
Oliverpool 8 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__, ""))+"/"
for key in ['song', 'tex']:
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
@classmethod

Loading…
Cancel
Save