Pyinstaller: use StrPath over StrOrBytesPath
#8780
Merged
StrPath over StrOrBytesPath
#8780