Page MenuHome

render.py
No OneTemporary

render.py

from flask import send_file, Blueprint
from os.path import exists
from os import pardir
#from server import RENDER_PATH
render = Blueprint('render', __name__)
@render.route('/')
def index():
return "Not Authorized", 403
@render.route('/<path:path>')
def get_render(path):
#img = RENDER_PATH + "/" + path
#if not exists(img):
return "Not Found", 404
#print os.path.abspath(".")
# TODO Find something less disgusting to get the path
#return send_file(pardir + "/" + img)

File Metadata

Mime Type
text/x-python
Expires
Wed, Sep 30, 1:47 PM (1 d, 23 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
04/59/fccc791351877274d7a84097c768

Event Timeline