Page MenuHome

T59124: BAT fails to find resources mix paths
AbandonedPublic

Authored by Jeroen Bakker (jbakker) on Dec 10 2018, 4:03 PM.

Details

Summary

When using a windows saved path on a linux system BAT was not able to
find all files. This was due to mixed paths (posix_path/windows_path)
the whole of the windows path was threaded as a single path by pathlib.

As in blender it is not allowed to use \ and / in filenames we can
assume that we can convert them to a single pathlib and continue.

as BAT leans a lot to posix path this path will replace all '\' to '/'
in order for pathlib to interp the file correctly.

Diff Detail

Event Timeline

@Sybren A. Stüvel (sybren)

Not sure we want to go for this (hacky) solution or make BAT more cross platform aware. Will test BAT on Windows in the next few weeks and see if everything works as expected.

Jeroen

I don't know how much more platform-aware we can make it. After all, there could have been many platforms a Blendfile went through before arriving at the current machine and the current platform. One file can hold paths written by Linux and Windows, and even have different character encodings for different paths (or *shudder* have different character encodings for different parts of a single path).

This revision is superseded by the 0.8 release (see T59124 for more info).