From 40e3a61e005dfd6945684c0bcf2af9e73e0688f0 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 5 Dec 2021 14:58:07 +0100 Subject: [PATCH] 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. --- lib/livebook/config.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/livebook/config.ex b/lib/livebook/config.ex index 9cb238680..20985bec9 100644 --- a/lib/livebook/config.ex +++ b/lib/livebook/config.ex @@ -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")