1 import os 2 from . import app 3 4 BANNER_LOCATION = "/var/lib/copr/banner-include.html" 5 6 7 @app.context_processor 8 -def include_banner(): 9 if os.path.exists(BANNER_LOCATION): 10 return {"copr_banner": open(BANNER_LOCATION).read()} 11 else: 12 return {} 13