7 if __name__ == "__main__":
8 parser = argparse.ArgumentParser()
9 parser.add_argument("--builddir", help="The meson build directory")
10 parser.add_argument(dest="plugins", help="The list of plugins")
12 options = parser.parse_args()
15 for plugin in options.plugins.split(os.pathsep):
16 all_paths.add(os.path.dirname(plugin))
18 with open(os.path.join(options.builddir, 'GstPluginsPath.json'), "w") as f:
19 json.dump(list(all_paths), f, indent=4, sort_keys=True)