Video editing with Python
Dont adapt separator based on os that was not the orignal problem as I was thinking
osaajani4054309d7851
diff --git a/moviepy/tools.py b/moviepy/tools.pyindex 69cffccc..72e9f333 100644--- a/moviepy/tools.py+++ b/moviepy/tools.py@@ -56,7 +56,7 @@ def ffmpeg_escape_filename(filename):That will ensure the filename doesn't start with a '-' (which would raise an error)"""if filename.startswith('-') :- filename = '.' + os.sep + filename+ filename = './' + filenamereturn filenamediff --git a/tests/test_tools.py b/tests/test_tools.pyindex 97984d3a..0bbbe34c 100644--- a/tests/test_tools.py+++ b/tests/test_tools.py@@ -65,6 +65,7 @@ def test_subprocess_call(command):tools.subprocess_call(command, logger=None)+@pytest.mark.parametrize("given, expected",[@@ -79,7 +80,6 @@ def test_ffmpeg_escape_filename(given, expected):"""Test the ffmpeg_escape_filename function outputs correct paths as perthe docstring."""- expected = expected.replace('/', os.sep)assert tools.ffmpeg_escape_filename(given) == expected