diff options
author | Marcel Hellkamp <marc@gsites.de> | 2019-12-19 17:07:15 +0100 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2019-12-19 17:07:15 +0100 |
commit | df1279c26782719fb71363d08e0a1702d7ccedaf (patch) | |
tree | 308368e08b68bf22cc02f1b378b56e90b0e4a278 | |
parent | e543073b4769c614bf3ec6a0d84e0ffa16cfb914 (diff) | |
download | bottle-defnull-1186.tar.gz |
Revert "fix #1186: Bottle fails to find templates on windows"defnull-1186
This reverts commit 085f18615fe8ab63588eebfd25bb90337aac2ba0.
-rwxr-xr-x | bottle.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2695,7 +2695,8 @@ class ResourceManager(object): res.add_path('./resources/', __file__) """ base = os.path.abspath(os.path.dirname(base or self.base)) - path = os.path.abspath(os.path.join(base, os.path.dirname(path))) + "/" + path = os.path.abspath(os.path.join(base, os.path.dirname(path))) + path += os.sep if path in self.path: self.path.remove(path) if create and not os.path.isdir(path): @@ -3837,7 +3838,7 @@ class BaseTemplate(object): "Refer to templates with names or paths relative to the lookup path.") for spath in lookup: - spath = os.path.abspath(spath) + "/" + spath = os.path.abspath(spath) + os.sep fname = os.path.abspath(os.path.join(spath, name)) if not fname.startswith(spath): continue if os.path.isfile(fname): return fname |