Mercurial > hg > orthanc-book
view Sphinx/source/plugins/python/venv-linux.py @ 1165:28b55ad71cb6 Orthanc-1.12.8
Orthanc 1.12.8
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Sat, 14 Jun 2025 17:53:22 +0200 |
| parents | 868552e0caf8 |
| children |
line wrap: on
line source
import orthanc import sys print("sys.path before modification: " + ", ".join(sys.path)) 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"] print("sys.path after modification: " + ", ".join(sys.path)) import requests # ....
