Skip to content

Commit

Permalink
Add a comment as to why sys.executable is not resolved when `sys._b…
Browse files Browse the repository at this point in the history
…ase_executable` is not available
  • Loading branch information
brettcannon committed Sep 16, 2023
1 parent 9c847ee commit 48782ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion microvenv/_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import sys
import sysconfig

# Should not change during execution, so it's reasonable as a global.
# This should not change during execution, so it's reasonable as a global.
# The path is purposefully unresolved for pyvenv.cfg purposes.
_BASE_EXECUTABLE = pathlib.Path(getattr(sys, "_base_executable", sys.executable))

_PYVENVCFG_TEMPLATE = f"""\
Expand Down

0 comments on commit 48782ea

Please sign in to comment.