From f280970dd3df3cecf08814e96576bf581833a402 Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Mon, 8 Apr 2013 11:07:07 +0200 Subject: [PATCH] test filenames with okapi video source options correctly --- sloth/annotations/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sloth/annotations/container.py b/sloth/annotations/container.py index bc7b6eb..5a5d293 100644 --- a/sloth/annotations/container.py +++ b/sloth/annotations/container.py @@ -168,7 +168,7 @@ class AnnotationContainer: the video from a path relative to the label files directory. """ fullpath = str(self._fullpath(filename)) - if not os.path.exists(fullpath): + if not os.path.exists(fullpath) and not os.path.exists(fullpath.split('%')[0]): LOG.warn("Video file %s does not exist." % fullpath) return None