bottlepy / bottle

bottle.py is a fast and simple micro-framework for python web-applications.
http://bottlepy.org/
MIT License
8.33k stars 1.46k forks source link

Redundant system separation in search method #1333

Closed felipexlr50 closed 3 years ago

felipexlr50 commented 3 years ago

The os.path.abspath() already output with the separation in the end of the string, therefore the os.sep() is redundant and can output missing file when search for template file.

defnull commented 3 years ago

No it does not?

>>> os.path.abspath("/foo/bar/")
'/foo/bar'