From e676dbe167633de4772edfe4525fe3cd29f41f3e Mon Sep 17 00:00:00 2001 From: carlos.vieira Date: Thu, 17 Apr 2014 14:22:50 -0300 Subject: [PATCH] barrabrasil.py: abrindo o arquivo como resource. --- app/barrabrasil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/barrabrasil.py b/app/barrabrasil.py index 73fcd88..03d716f 100644 --- a/app/barrabrasil.py +++ b/app/barrabrasil.py @@ -26,7 +26,7 @@ def pagina_teste(): @app.route('/barra.js') def barra(): - f = file('profile') + f = app.open_resource('profile') cfg = Config(f) profile = cfg.profile with app.open_resource('templates/%s/barra-brasil.js' % profile) as f: -- libgit2 0.21.2