Skip to content

Commit

Permalink
Fix venv Lib path for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Mar 24, 2024
1 parent 0d8fa6d commit 67edcd7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ropetest/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ def session_venv_pyvenv_cfg(session_venv):

@pytest.fixture(scope="session")
def session_venv_site_packages(session_venv, session_venv_pyvenv_cfg):
major, minor, patch = session_venv_pyvenv_cfg["version"].split(".")
return session_venv / f"lib/python{major}.{minor}/site-packages"
if os.name == 'nt':
return session_venv / f"Lib/site-packages"
else:
major, minor, patch = session_venv_pyvenv_cfg["version"].split(".")
return session_venv / f"lib/python{major}.{minor}/site-packages"


@pytest.fixture(scope='session')
Expand Down

0 comments on commit 67edcd7

Please sign in to comment.