mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
jupyter-runtime-directory: Use an existing directory
Set `default-directory` to one that should exist otherwise tests fail on Appveyor.
This commit is contained in:
parent
31b551bdc1
commit
d5492c54fb
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ As a side effect, the variable `jupyter-runtime-directory' is set
|
|||
to the local runtime directory if it is nil."
|
||||
(unless jupyter-runtime-directory
|
||||
(setq jupyter-runtime-directory
|
||||
(let ((default-directory user-emacs-directory))
|
||||
(let ((default-directory (expand-file-name "~" user-emacs-directory)))
|
||||
(jupyter-command "--runtime-dir"))))
|
||||
(let ((dir (if (file-remote-p default-directory)
|
||||
(jupyter-command "--runtime-dir")
|
||||
|
|
|
@ -697,7 +697,7 @@
|
|||
(should dir-created)
|
||||
(setq dir-created nil)
|
||||
(should (equal jupyter-runtime-directory "foo"))
|
||||
(let ((default-directory "/ssh:foo:~"))
|
||||
(let ((default-directory "/ssh:foo:/"))
|
||||
(should (equal (jupyter-runtime-directory) "/ssh:foo:foo"))
|
||||
(ert-info ("Variable definition is always local")
|
||||
(setq jupyter-runtime-directory nil)
|
||||
|
|
Loading…
Add table
Reference in a new issue