annotate Sphinx/source/plugins/python/venv-linux.py @ 1113:a588960a72e5 default tip

spelling
author Alain Mazy <am@orthanc.team>
date Mon, 28 Oct 2024 09:23:08 +0100
parents 868552e0caf8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1018
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
1 import orthanc
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
2 import sys
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
3
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
4 print("sys.path before modification: " + ", ".join(sys.path))
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
5
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
6 sys.path = ["/usr/lib/python3.8", "/usr/lib/python3.8/lib-dynload", "/tmp/.env/lib/python3.8/site-packages", "/tmp/.venv/lib64/python3.8/site-packages"]
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
7
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
8 print("sys.path after modification: " + ", ".join(sys.path))
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
9
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
10 import requests
868552e0caf8 python venv
Alain Mazy <am@osimis.io>
parents:
diff changeset
11 # ....