os.path.commonpath (and our implementation of it) both always return the path using the native operating system path separator, so we can't just directly compare it since the prefix could be specified in '/', and commonpath would use '\' on Windows. Also add a unit test for this.tingping/xdg-module
parent
14e0529a03
commit
97911c4384
2 changed files with 10 additions and 2 deletions
Loading…
Reference in new issue