Skip to content

Video editing with Python

Fix dir seperator for windows

osaajani442db0f8c6b7
diff --git a/moviepy/tools.py b/moviepy/tools.py
index fab9791f..6b7081af 100644
--- a/moviepy/tools.py
+++ b/moviepy/tools.py
@@ -58,7 +58,7 @@ def ffmpeg_escape_filename(filename):
and use `shlex.quote` to escape filenames with spaces and special chars.
"""
if filename.startswith('-') :
- filename = './' + filename
+ filename = '.' + os.sep + filename
return shlex.quote(filename)