Modify PATH only when msys2 exists

This commit is contained in:
Marcus Kammer 2022-01-02 15:36:12 +01:00
parent 5db2e86db3
commit 2ec9c5a5eb

View file

@ -5,7 +5,8 @@
browse-url-secondary-browser-function 'browse-url-firefox))
(when (eq system-type 'windows-nt)
(setenv "PATH" (string-join `("C:\\msys64\\usr\\bin" ,(getenv "PATH")) ":"))
(when (file-exists-p "c:/msys64/msys2.exe")
(setenv "PATH" (string-join `("C:\\msys64\\usr\\bin" ,(getenv "PATH")) ":")))
(setq custom-file "~/.emacs.d/bundle/custom_win32.el"
org-babel-python-command "python")