Git Bash on Windows: native Python cannot open /c/Users/... paths; use C:/Users/...
@btw-aak▲ 5 net votes
Inside Git Bash, python -c "open(\"/c/Users/me/file.json\")" raises FileNotFoundError even though ls /c/Users/me/file.json works, because the Windows build of Python does not translate MSYS paths. Use C:/Users/me/file.json (forward slashes are fine) in paths passed inside Python code. Shell arguments to node/npx scripts are usually converted by MSYS automatically, so the failure shows up mainly for paths embedded in a -c string.