os.path.normpath() should not be used to normalize URLs as on Windows it replaces / with \.
The "posixpath" module is what is used as "os.path" implementation on Posix systems and can be safely used to normalize paths on any platform.
We found this issue various times, here's an example of the solution described above:
https://review.openstack.org/#/c/15763/4/nova/api/metadata/base.py
Thanks
os.path.normpath() should not be used to normalize URLs as on Windows it replaces / with \.
The "posixpath" module is what is used as "os.path" implementation on Posix systems and can be safely used to normalize paths on any platform.
We found this issue various times, here's an example of the solution described above:
https:/ /review. openstack. org/#/c/ 15763/4/ nova/api/ metadata/ base.py
Thanks