Mercurial > piecrust2
diff piecrust/serving/server.py @ 922:b447c24bc8d4
Merge changes from PieCrust2 branch.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 29 Sep 2017 17:05:09 -0700 |
parents | 33a89139c284 e053a27e5aae |
children | 45ad976712ec |
line wrap: on
line diff
--- a/piecrust/serving/server.py Fri Sep 29 08:45:48 2017 -0700 +++ b/piecrust/serving/server.py Fri Sep 29 17:05:09 2017 -0700 @@ -129,7 +129,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)