Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.path.join creates malformed URLs on Windows #373

Open
BenediktHeinrichs opened this issue Apr 5, 2019 · 0 comments
Open

os.path.join creates malformed URLs on Windows #373

BenediktHeinrichs opened this issue Apr 5, 2019 · 0 comments

Comments

@BenediktHeinrichs
Copy link

We are currently trying to run waterbutler on Windows and on inspection of the registered routes, we stumbled upon the following line in app.py:

(os.path.join('/', api.PREFIX, pattern.lstrip('/')), handler)

This has a strange behavior on Windows, so that instead of a normal "/" it adds a "\", which makes the api v1 not useable on Windows.

One workaround we implemented was to just add those three strings manually using the following line:

('/' + api.PREFIX + '/' + pattern.lstrip('/'), handler)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant