core-os: add exec-path failsafe

This commit is contained in:
Henrik Lissner 2017-03-20 04:05:17 -04:00
parent 733f371607
commit c6a61b9b2c

View file

@ -31,11 +31,12 @@
(cond ((display-graphic-p)
;; `exec-path-from-shell' is slow, so bring out the cache
(setq exec-path
(eval-when-compile
(require 'exec-path-from-shell nil t)
(or (eval-when-compile
(when (require 'exec-path-from-shell nil t)
(nconc exec-path-from-shell-variables '("GOPATH" "GOROOT" "PYTHONPATH"))
(exec-path-from-shell-initialize)
(persistent-soft-store 'exec-path exec-path "emacs")
exec-path))
exec-path)))
(t
(when (require 'osx-clipboard nil t)