Commits

Audrius Kažukauskas committed 81efe4e

YAMLLoader accepts file objects

  • Participants
  • Parent commits 7460445

Comments (0)

Files changed (1)

beancounter/__init__.py

 # This file is part of BeanCounter and is released under
 # the ISC license, see LICENSE for more details.
 
-import os.path
-
 from flask import Flask
 from flask.ext.assets import Environment
 
     # Disable asset rebuilding in production mode.
     if not app.debug:
         assets.auto_build = False
-    assets.from_yaml(os.path.join(app.root_path, 'assets.yaml'))
+    assets.from_yaml(app.open_resource('assets.yaml'))
 
     return app