Commit 0dc8ee84 authored by Thomas Bernhart's avatar Thomas Bernhart
Browse files

Fix command line argument parsing

parent a9132cf4
......@@ -11,4 +11,4 @@ arg_handler.add_argument("--output-directory", required=True)
args = arg_handler.parse_args()
foxml_export(args["object_store_directory"], args["output_directory"], "./record_sets_ids_dh_2.3.csv")
foxml_export(args.object_store_directory, args.output_directory, "./record_sets_ids_dh_2.3.csv")
......@@ -17,9 +17,10 @@ arg_handler.add_argument("--output-directory", required=True)
args = arg_handler.parse_args()
foxml_export(args["object_store_directory"], args["output_directory"], "./record_sets_ids_dh_2.3.csv")
foxml_export(args.object_store_directory, args.output_directory, "./record_sets_ids_dh_2.3.csv")
for record_set_directory in listdir(args["output_directory"]):
record_set_path = path.join(args["output_directory"], record_set_directory)
for record_set_directory in listdir(args.output_directory):
record_set_path = path.join(args.output_directory, record_set_directory)
if path.isdir(record_set_path):
media_export(record_set_path, args["datastream_store_directory"], args["http_resources_directory"], args["rtmp_resources_directory"])
media_export(record_set_path, args.datastream_store_directory,
args.http_resources_directory, args.rtmp_resources_directory)
......@@ -12,4 +12,5 @@ arg_handler.add_argument("--rtmp-resources-directory", required=True)
args = arg_handler.parse_args()
media_export(args["record_set_directory"], args["datastream_store_directory"], args["http_resources_directory"], args["rtmp_resources_directory"])
media_export(args.record_set_directory, args.datastream_store_directory,
args.http_resources_directory, args.rtmp_resources_directory)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment