mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
validate: launcher: Support relative path for folder names
Even though relative paths are supported, right now it does not work when we give the path as 'media/' present in the current directory. Adding support for the same. https://bugzilla.gnome.org/show_bug.cgi?id=754100
This commit is contained in:
parent
91b3001f77
commit
1b700f13b4
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ not been tested and explicitely activated if you set use --wanted-tests ALL""")
|
||||||
else:
|
else:
|
||||||
for root, dirs, files in os.walk(path):
|
for root, dirs, files in os.walk(path):
|
||||||
for f in files:
|
for f in files:
|
||||||
fpath = os.path.join(os.path.abspath(path), root, f)
|
fpath = os.path.abspath(os.path.join(root, f))
|
||||||
if os.path.isdir(fpath) or \
|
if os.path.isdir(fpath) or \
|
||||||
fpath.endswith(GstValidateMediaDescriptor.MEDIA_INFO_EXT) or\
|
fpath.endswith(GstValidateMediaDescriptor.MEDIA_INFO_EXT) or\
|
||||||
fpath.endswith(ScenarioManager.FILE_EXTENSION):
|
fpath.endswith(ScenarioManager.FILE_EXTENSION):
|
||||||
|
|
Loading…
Reference in a new issue