From 9414e0b0be6d75bbc7ee3a45f96a7234990b1a0e Mon Sep 17 00:00:00 2001 From: isysd Date: Sat, 28 Nov 2015 15:40:19 -0500 Subject: [PATCH] relative paths for CLI --- build_swagger_spec.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build_swagger_spec.py b/build_swagger_spec.py index 513c78e..9d613ee 100644 --- a/build_swagger_spec.py +++ b/build_swagger_spec.py @@ -1,8 +1,12 @@ +import os +import sys import argparse import json import pkg_resources from flask_swagger import swagger +sys.path.append(os.getcwd()) + parser = argparse.ArgumentParser() parser.add_argument('app', help='the flask app to swaggerify') #parser.add_argument('--definitions', help='json definitions file')