Attempt at making BAT work on Windows

All BlendPath instances will use forward slashes, and there should be
more use of PurePosixPath instead of Path.
This commit is contained in:
Sybren A. Stüvel
2019-01-02 15:14:50 +01:00
parent 37578811d7
commit 5635895d0c
4 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ class BlockUsage:
"""
if self._abspath is None:
bpath = self.block.bfile.abspath(self.asset_path)
as_path = bpath.to_path()
as_path = pathlib.Path(bpath.to_path())
try:
self._abspath = as_path.resolve()
except FileNotFoundError: