allenact
allenact copied to clipboard
Fix path normalization on Windows
os.path.abspath
uses forward slashes on posix and back slashes on Windows.
This is a problem because the next line of code splits the string by (only) forward slashes.
Instead, we can use posixpath.normpath
which always uses forward slashes.