summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ob-spice.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/ob-spice.el b/ob-spice.el
index d936ee7..982765e 100644
--- a/ob-spice.el
+++ b/ob-spice.el
@@ -46,9 +46,9 @@ default-directory or DIR if specified."
(session (make-comint sessionname org-babel-spice-command)))
(if (and dir (file-name-absolute-p dir))
;; absolute dir
- (comint-simple-send session (format "cd %s" dir))
+ (comint-simple-send session (format "cd '%s'" dir))
;; relative dir
- (comint-simple-send session (format "cd %s" default-directory)))
+ (comint-simple-send session (format "cd '%s'" default-directory)))
session))
;; helper