Mercurial > hg > orthanc-book
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 |
rev | line source |
---|---|
1018 | 1 import orthanc |
2 import sys | |
3 | |
4 print("sys.path before modification: " + ", ".join(sys.path)) | |
5 | |
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"] | |
7 | |
8 print("sys.path after modification: " + ", ".join(sys.path)) | |
9 | |
10 import requests | |
11 # .... |