From d6158137f25bde9eb2f92b6d75804932eb0df5fd Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sat, 5 Aug 2023 16:34:15 -0500 Subject: [PATCH] fix: make directory before trying to write to it --- src/viv/viv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index e0ecdc7..64cffb0 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -53,7 +53,7 @@ from typing import ( from urllib.error import HTTPError from urllib.request import urlopen -__version__ = "23.8a1-1-g0547fd6-dev" +__version__ = "23.8a1-3-ga78624c-dev" class Spinner: @@ -1270,6 +1270,7 @@ class Viv: cli.unlink() cli.symlink_to(src) else: + cli.parent.mkdir(exist_ok=True, parents=True) cli.symlink_to(src) log.info("Remember to include the following line in your shell rc file:")