From 1577c16dcb62c6b8234cd7229bddda6a033ae076 Mon Sep 17 00:00:00 2001 From: Yauhen Shulitski Date: Wed, 27 Mar 2024 23:21:59 +0100 Subject: [PATCH] :p: Always use absolute name in env dirs --- cmd/script.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/script.go b/cmd/script.go index f4c7256..ae64c1b 100644 --- a/cmd/script.go +++ b/cmd/script.go @@ -11,6 +11,7 @@ import ( ) const VEnvInfoFilename = ".venv.version" +const VEnvDirDefaultName = ".venv" // Script represents a Python script type Script struct { @@ -353,7 +354,7 @@ func NewInitCmd(interpreterOverride string, requirementsOverride string) (*Scrip loggerErr.Printf("Generated environment ID: %s\n", envID) } - envDir := ".venv" + envDir := path.Join(cwd, VEnvDirDefaultName) if flagDebug { loggerErr.Println("Using virtual environment: ", envDir)