summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Deifel <hpdeifel@gmx.de>2012-06-05 08:52:24 -0600
committerEric Schulte <eric.schulte@gmx.com>2012-06-05 08:52:24 -0600
commit343a705ba51afa426ab60820ea6a16d82bffb999 (patch)
tree8e30ed5efce47b3e340ad9226ed1208cde1d3da6
parent03fbf6b16120787215d55872e3e2afc1f008b020 (diff)
downloadorg-mode-343a705ba51afa426ab60820ea6a16d82bffb999.tar.gz
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.
-rw-r--r--lisp/ob.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index d2d94b8..509bd41 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