diff --git a/tools/create_bitstreams/create_bitstreams.py b/tools/create_bitstreams/create_bitstreams.py index 330e0d1..962b965 100644 --- a/tools/create_bitstreams/create_bitstreams.py +++ b/tools/create_bitstreams/create_bitstreams.py @@ -19,6 +19,9 @@ # env settings, update with project_settings env = update_settings(settings.env, project_settings.settings) +# abcd = os.getenv(") +if "DSPACE_REST_API" in os.environ: + env["backend"]["endpoint"] = os.getenv("DSPACE_REST_API") init_logging(_logger, env["log_file"]) MULTIPART_CONTENT_TYPE = 'multipart/form-data'