view Sphinx/source/plugins/python/venv-linux.py @ 1117:9a4c9e0218d9

get-scu
author Alain Mazy <am@orthanc.team>
date Mon, 09 Dec 2024 18:46:28 +0100
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
# ....