summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generate_plugins_path.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/generate_plugins_path.py b/scripts/generate_plugins_path.py
index d57c60c2fe..17a38f123b 100644
--- a/scripts/generate_plugins_path.py
+++ b/scripts/generate_plugins_path.py
@@ -6,14 +6,14 @@ import json
if __name__ == "__main__":
parser = argparse.ArgumentParser()
- parser.add_argument("--builddir", help="The meson build directory")
- parser.add_argument(dest="plugins", help="The list of plugins")
+ parser.add_argument(dest="output", help="Output file")
+ parser.add_argument(dest="plugins", nargs=argparse.REMAINDER, help="The list of plugins")
options = parser.parse_args()
all_paths = set()
- for plugin in options.plugins.split(os.pathsep):
+ for plugin in options.plugins:
all_paths.add(os.path.dirname(plugin))
- with open(os.path.join(options.builddir, 'GstPluginsPath.json'), "w") as f:
+ with open(options.output, "w") as f:
json.dump(list(all_paths), f, indent=4, sort_keys=True)