Skip to content

Commit

Permalink
Merge pull request #2 from gesoges0/fix/python-venv-absolute-path
Browse files Browse the repository at this point in the history
feat: Converted venv path to absolute PATH
  • Loading branch information
gesoges0 committed Jan 24, 2024
2 parents 9c09c0c + aea65bb commit 0f4003a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/segments/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"errors"
"fmt"
"path/filepath"
"slices"
"strings"

"github.com/jandedobbeleer/oh-my-posh/src/platform"
Expand Down Expand Up @@ -74,11 +73,6 @@ func (p *Python) loadContext() {
"CONDA_DEFAULT_ENV",
}

defaultVenvNames := []string{
".venv",
"venv",
}

var venv string
for _, venvVar := range venvVars {
venv = p.language.env.Getenv(venvVar)
Expand Down

0 comments on commit 0f4003a

Please sign in to comment.