Skip to content

Commit

Permalink
:p: Always use absolute name in env dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnjack committed Mar 27, 2024
1 parent 443921a commit 1577c16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
)

const VEnvInfoFilename = ".venv.version"
const VEnvDirDefaultName = ".venv"

// Script represents a Python script
type Script struct {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1577c16

Please sign in to comment.