Skip to content

Commit 50d3bea

Browse files
committed
Bug: Use PureWindowsPath instead of WindowsPath
.. as WindowsPath obviously cannot be instantiated on linux and osx
1 parent a30aee1 commit 50d3bea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pywavefront/texture.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# POSSIBILITY OF SUCH DAMAGE.
3333
# ----------------------------------------------------------------------------
3434
import pywavefront
35-
from pathlib import Path, WindowsPath
35+
from pathlib import Path, PureWindowsPath
3636
import re
3737

3838

@@ -90,7 +90,7 @@ def file_name(self):
9090
textures real location.
9191
"""
9292
if ':' in self._name or '\\' in self._name:
93-
return WindowsPath(self._name).name
93+
return PureWindowsPath(self._name).name
9494

9595
return Path(self._name).name
9696

0 commit comments

Comments
 (0)