Skip to content

Commit

Permalink
Support TRELLIS_VENV to disable virtualenv
Browse files Browse the repository at this point in the history
`TRELLIS_VENV=false` won't activate virtualenv
  • Loading branch information
swalkinshaw committed Sep 6, 2019
1 parent 412a273 commit c199814
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions trellis/trellis.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ func (t *Trellis) LoadProject() error {
t.Environments[envName] = t.ParseConfig(p)
}

if t.Virtualenv.Initialized() {
t.Virtualenv.Activate()
if os.Getenv("TRELLIS_VENV") != "false" {
if t.Virtualenv.Initialized() {
t.Virtualenv.Activate()
}
}

return nil
Expand Down

0 comments on commit c199814

Please sign in to comment.