radian-software / radian

🍉 Dotfiles that marry elegance and practicality.
MIT License
490 stars 47 forks source link

exec-path setting is wrong on windows+msys2 #460

Closed ijah4 closed 4 years ago

ijah4 commented 4 years ago

exec-path is set differently under the following two scenes.

wrong ("c:./c/msys/mingw64/bin:/c/msys/usr/local/bin:/c/msys/usr/bin:/c/msys/usr/bin: ......")

right ("c:/msys/mingw64/bin/" "c:/msys/usr/local/bin/" "c:/msys/usr/bin/" "c:/msys/usr/bin/" ......)

Environment win10 + msys2 python3 ported on msys2

I noticed that exec-path is set in radian-env-setup through scripts/print_env.py. so i ran the os.environ.items on cmd and zsh shell. I get environment variable PATH style is different. One is /c/msys/mingw64/bin:/c/msys/usr/local/bin:/c/msys/usr/bin:/c/msys/usr/bin: style. Another is C:\\msys\\mingw64\\bin;C:\\msys\\usr\\local\\bin;C:\\msys\\usr\\bin;C:\\msys\\usr\\bin; style. Maybe this bring the exec-path can't set rightly. but i don't why, and how to correct it.

Finally, I like radian and CTRLF. thank you.

ijah4 commented 4 years ago

I find that the reason is shell' PATH directory order is different. When i use this order/c/msys/mingw64/bin:/c/msys/usr/local/bin:/c/msys/usr/bin:. exec-path can be set correctly. This issue is closer to msys2. so i close it. Thank you.

ijah4 commented 4 years ago

On msys2, Python from mingw64/bin is windows native application, the one from/usr/bin is UNIX emulated application.

raxod502 commented 3 years ago

Sounds good, glad you figured it out :)