test filenames with okapi video source options correctly

This commit is contained in:
Martin Baeuml
2013-04-08 11:07:07 +02:00
parent fff6e00e5f
commit f280970dd3
+1 -1
View File
@@ -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