# HG changeset patch # User Ludovic Chabant # Date 1425229592 28800 # Node ID 12657039c436cc7bd3b612d23b515f55e64165cd # Parent 935bf568268608c672297085efc749fe0bb1df2e internal: Re-use the cached resource directory. diff -r 935bf5682686 -r 12657039c436 piecrust/app.py --- a/piecrust/app.py Fri Feb 27 22:30:36 2015 -0800 +++ b/piecrust/app.py Sun Mar 01 09:06:32 2015 -0800 @@ -7,7 +7,8 @@ import collections import yaml from werkzeug.utils import cached_property -from piecrust import (APP_VERSION, +from piecrust import ( + APP_VERSION, RESOURCES_DIR, CACHE_DIR, TEMPLATES_DIR, ASSETS_DIR, PLUGINS_DIR, THEME_DIR, CONFIG_PATH, THEME_CONFIG_PATH, @@ -471,7 +472,7 @@ td = self._get_dir(THEME_DIR) if td is not None: return td - return os.path.join(os.path.dirname(__file__), 'resources', 'theme') + return os.path.join(RESOURCES_DIR, 'theme') @cached_property def cache_dir(self):