Move gen-doc helper script
This commit is contained in:
parent
fd4f033a04
commit
57127d2fa8
|
@ -4,14 +4,17 @@
|
||||||
# Part of the Parallel Virtual Cluster (PVC) system
|
# Part of the Parallel Virtual Cluster (PVC) system
|
||||||
|
|
||||||
from flask_swagger import swagger
|
from flask_swagger import swagger
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import json
|
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')
|
pvc_api = __import__('pvc-api')
|
||||||
|
|
||||||
swagger_file = "swagger.json"
|
swagger_file = "docs/manuals/swagger.json"
|
||||||
|
|
||||||
swagger_data = swagger(pvc_api.app)
|
swagger_data = swagger(pvc_api.app)
|
||||||
swagger_data['info']['version'] = "1.0"
|
swagger_data['info']['version'] = "1.0"
|
Loading…
Reference in New Issue