Skip to content

Commit

Permalink
Check env_dir too
Browse files Browse the repository at this point in the history
  • Loading branch information
maxzheng committed Sep 23, 2023
1 parent 40ebf16 commit 101b332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workspace/commands/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def homedir(self):
def envdir(self, env):
default_envdir = os.path.join('{toxworkdir}', env)
default_envsection = self.envsection()
default_envdir = self.get(default_envsection, 'envdir', default_envdir)
default_envdir = self.get(default_envsection, 'env_dir', self.get(default_envsection, 'envdir', default_envdir))
envsection = self.envsection(env)
envdir = self.get(envsection, 'envdir', default_envdir)
envdir = self.get(envsection, 'env_dir', self.get(envsection, 'envdir', default_envdir))
return self.expand_vars(envdir, {'envname': env})

def bindir(self, env, script=None):
Expand Down

0 comments on commit 101b332

Please sign in to comment.