From 57127d2fa86a77f5218d05acf0391ff923e5d736 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 23 Dec 2019 20:51:31 -0500 Subject: [PATCH] Move gen-doc helper script --- client-api/gen-doc.py => gen-api-doc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename client-api/gen-doc.py => gen-api-doc.py (75%) diff --git a/client-api/gen-doc.py b/gen-api-doc.py similarity index 75% rename from client-api/gen-doc.py rename to gen-api-doc.py index 07d2c177..990e793c 100755 --- a/client-api/gen-doc.py +++ b/gen-api-doc.py @@ -4,14 +4,17 @@ # Part of the Parallel Virtual Cluster (PVC) system from flask_swagger import swagger +import os import sys import json -sys.path.append(',') +os.environ['PVC_CONFIG_FILE'] = "./client-api/pvc-api.sample.yaml" + +sys.path.append('client-api') pvc_api = __import__('pvc-api') -swagger_file = "swagger.json" +swagger_file = "docs/manuals/swagger.json" swagger_data = swagger(pvc_api.app) swagger_data['info']['version'] = "1.0"