Skip to content

Commit

Permalink
allow pypy venvs on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Jun 28, 2018
1 parent b7365da commit 666fc1a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hatch/venv.py
Expand Up @@ -144,8 +144,13 @@ def fix_executable(path, exe_dir):

def locate_exe_dir(d, check=True):
exe_dir = os.path.join(d, 'Scripts') if ON_WINDOWS else os.path.join(d, 'bin')
if check and not os.path.isdir(exe_dir):
raise InvalidVirtualEnv('Unable to locate executables directory.')
if not os.path.isdir(exe_dir):
if ON_WINDOWS:
bin_dir = os.path.join(d, 'bin')
if os.path.isdir(bin_dir):
return bin_dir
if check:
raise InvalidVirtualEnv('Unable to locate executables directory.')
return exe_dir


Expand Down

0 comments on commit 666fc1a

Please sign in to comment.