Closed trumank closed 4 years ago
Thats strange that I haven't heard of this issue before yet. Would it be sufficient to simply add resolve()
to all Path(__file__, ".."
calls?
Would it be sufficient to simply add
resolve()
to allPath(__file__, ".."
calls?
I think so. I did try that and it worked if the CWD was factorio/mods/L0laapk3_FactorioMaps_4.0.1
but it seemed to hang if it was anything else, though I may have missed a couple of places with my find replace.
Could you please test this commit? :)
Works for me. :+1:
I'm not sure how it's currently supposed to be working unless Windows handles paths differently. It looks like everywhere
__file__
is referenced,.resolve()
needs to be called on the resulting path or the path will result in 'Not a directory' as__file__
is not a directory.