diff --git a/lisp/ob.el b/lisp/ob.el index d2d94b83c..509bd4198 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -524,7 +524,8 @@ block." (nth 1 info)))) (dir (cdr (assoc :dir params))) (default-directory - (or (and dir (file-name-as-directory dir)) default-directory)) + (or (and dir (file-name-as-directory (expand-file-name dir))) + default-directory)) (org-babel-call-process-region-original (if (boundp 'org-babel-call-process-region-original) org-babel-call-process-region-original