From 343a705ba51afa426ab60820ea6a16d82bffb999 Mon Sep 17 00:00:00 2001 From: Hans-Peter Deifel Date: Tue, 5 Jun 2012 08:52:24 -0600 Subject: [PATCH] allow relative file names for :dir TINYCHANGE * lisp/ob.el (org-babel-execute-src-block): Allow the :dir header argument to take relative file names. --- lisp/ob.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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