mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-07 20:26:10 +08:00
Expand System.tmp_dir!() path by default (#754)
Since System.tmp_dir!/0 returns the path with backslashes instead of frontslash it is piped to Path.expand/1 to normalize it to frontslashes.
This commit is contained in:
parent
34697bfdfc
commit
40e3a61e00
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ defmodule Livebook.Config do
|
|||
if writable_directory?(cache_path) do
|
||||
cache_path
|
||||
else
|
||||
System.tmp_dir!() |> Path.join("livebook")
|
||||
System.tmp_dir!() |> Path.expand() |> Path.join("livebook")
|
||||
end
|
||||
|
||||
notebooks_path = Path.join(path, "notebooks")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue