Commit e676dbe167633de4772edfe4525fe3cd29f41f3e

Authored by carlos.vieira
1 parent 9e289bb6
Exists in master

barrabrasil.py: abrindo o arquivo como resource.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/barrabrasil.py
@@ -26,7 +26,7 @@ def pagina_teste(): @@ -26,7 +26,7 @@ def pagina_teste():
26 26
27 @app.route('/barra.js') 27 @app.route('/barra.js')
28 def barra(): 28 def barra():
29 - f = file('profile') 29 + f = app.open_resource('profile')
30 cfg = Config(f) 30 cfg = Config(f)
31 profile = cfg.profile 31 profile = cfg.profile
32 with app.open_resource('templates/%s/barra-brasil.js' % profile) as f: 32 with app.open_resource('templates/%s/barra-brasil.js' % profile) as f: