Skip to content

Commit

Permalink
Apply default logic for venv symlink mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmauve committed Jan 20, 2025
1 parent a726642 commit 9f688ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion thx/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Licensed under the MIT License

import logging
import os
import platform
import re
import shutil
Expand Down Expand Up @@ -196,7 +197,12 @@ async def prepare_virtualenv(context: Context, config: Config) -> AsyncIterator[
if context.live:
import venv

venv.create(context.venv, prompt=prompt, with_pip=True)
venv.create(
context.venv,
prompt=prompt,
with_pip=True,
symlinks=(os.name != "nt"),
)

else:
await check_command(
Expand Down

0 comments on commit 9f688ef

Please sign in to comment.