Mercurial > p > roundup > code
diff roundup/admin.py @ 4900:349a83aca61f
Correctly locate templates in a virtualenv (issue2550841)
The listTemplates() method looks in a number of locations under
'<venv>/local/' but the setup script installs them under the directory
'<venv>/share/roundup/templates/', so we need to add that to the list of
paths that are looked in for templates.
| author | John Kristensen <john@jerrykan.com> |
|---|---|
| date | Thu, 26 Jun 2014 15:39:19 +1000 |
| parents | 6e9b9743de89 |
| children | 5251e97b1de0 |
line wrap: on
line diff
--- a/roundup/admin.py Wed Jun 18 13:31:46 2014 +1000 +++ b/roundup/admin.py Thu Jun 26 15:39:19 2014 +1000 @@ -305,7 +305,7 @@ # # we're interested in where the directory containing "share" is templates = {} - for N in 2, 4, 5: + for N in 2, 4, 5, 6: path = __file__ # move up N elements in the path for i in range(N):
