Skip to content

Commit

Permalink
Disable sitecustomize paths if in virtual env
Browse files Browse the repository at this point in the history
  • Loading branch information
Luka Juricic committed Mar 7, 2024
1 parent c7d8194 commit 3d14b8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions colcon_core/task/python/template/sitecustomize.py.em
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
sys.real_prefix = sys.prefix
sys.prefix = sys.exec_prefix = @repr(site_prefix)
if sys.prefix == sys.base_prefix:
sys.real_prefix = sys.prefix
sys.prefix = sys.exec_prefix = @repr(site_prefix)

0 comments on commit 3d14b8f

Please sign in to comment.