mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-14 11:25:39 +00:00
validate:launcher: handle file path in --medias-paths
right now --medias-paths accepts only directories. Added support to accept file path as well. https://bugzilla.gnome.org/show_bug.cgi?id=752692
This commit is contained in:
parent
6c48e89aab
commit
6bf6fe7dec
1 changed files with 12 additions and 9 deletions
|
@ -667,6 +667,9 @@ not been tested and explicitely activated if you set use --wanted-tests ALL""")
|
|||
self.options.paths = [os.path.join(self.options.paths)]
|
||||
|
||||
for path in self.options.paths:
|
||||
if os.path.isfile(path):
|
||||
self._discover_file(path2url(path), path)
|
||||
else:
|
||||
for root, dirs, files in os.walk(path):
|
||||
for f in files:
|
||||
fpath = os.path.join(path, root, f)
|
||||
|
|
Loading…
Reference in a new issue