Skip to content
Snippets Groups Projects

Simpleservices

Open Sastry, Nishanth Prof (Comp Sci & Elec Eng) requested to merge simpleservices into master
1 file
+ 14
0
Compare changes
  • Side-by-side
  • Inline
+ 14
0
 
import os
 
import json
 
from flask import make_response
 
 
 
def root_dir():
 
""" Returns root director for this project """
 
return os.path.dirname(os.path.realpath(__file__ + '/..'))
 
 
 
def nice_json(arg):
 
response = make_response(json.dumps(arg, sort_keys = True, indent=4))
 
response.headers['Content-type'] = "application/json"
 
return response
 
\ No newline at end of file
Loading