# HG changeset patch # User Ludovic Chabant # Date 1494534078 25200 # Node ID e053a27e5aaed6a8a6217f27e606d8e694cff46c # Parent cd236a6af9f6d55d7ecbf9e5a7c4ee0545bab4fb server: Fix crash when serving temp files like CSS maps. diff -r cd236a6af9f6 -r e053a27e5aae piecrust/serving/server.py --- a/piecrust/serving/server.py Fri Apr 28 10:05:14 2017 -0700 +++ b/piecrust/serving/server.py Thu May 11 13:21:18 2017 -0700 @@ -147,7 +147,7 @@ if request.path.startswith('/_cache/'): # Some stuff needs to be served directly from the cache directory, # like LESS CSS map files. - full_path = os.path.join(self.root_dir, rel_req_path) + full_path = os.path.join(self.appfactory.root_dir, rel_req_path) else: full_path = os.path.join(self._out_dir, rel_req_path)