Skip to content

Commit

Permalink
Make child process inherit load-path from parent (#27)
Browse files Browse the repository at this point in the history
Ensure that the `load-path` used in the async child process matches the
`load-path` in the parent process. I suspect that this is the root cause
of issues like #19 and
#21.
  • Loading branch information
astahlman committed Apr 29, 2018
1 parent 27ac935 commit 4bd85c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ob-async.el
Expand Up @@ -133,6 +133,7 @@ block."
;; TODO: Put this in a function so it can be overidden
;; Initialize the new Emacs process with org-babel functions
(setq exec-path ',exec-path)
(setq load-path ',load-path)
(package-initialize)
(org-babel-do-load-languages 'org-babel-load-languages ',org-babel-load-languages)
(let ((default-directory ,default-directory))
Expand Down
1 change: 1 addition & 0 deletions ob-async.org
Expand Up @@ -835,6 +835,7 @@ ripped straight from the original source for
;; TODO: Put this in a function so it can be overidden
;; Initialize the new Emacs process with org-babel functions
(setq exec-path ',exec-path)
(setq load-path ',load-path)
(package-initialize)
(org-babel-do-load-languages 'org-babel-load-languages ',org-babel-load-languages)
(let ((default-directory ,default-directory))
Expand Down

0 comments on commit 4bd85c9

Please sign in to comment.