You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
os.path.relpath fails with an exception on both Windows and Unix systems
(ntpath and posixpath modules) when the given path and the start path
are equal. Better behavior here might be to return an empty string or
perhaps os.path.curdir.
>>> os.path.relpath("test", "test")
Traceback (most recent call last):
File "<pyshell#40>", line 1, in <module>
os.path.relpath("test", "test")
File "C:\Program Files\Python3K\Lib\ntpath.py", line 495, in relpath
return join(*rel_list)
TypeError: join() takes at least 1 positional argument (0 given)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: