diff Sphinx/source/plugins/python/venv-windows.py @ 1018:868552e0caf8

python venv
author Alain Mazy <am@osimis.io>
date Thu, 25 Jan 2024 11:33:50 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sphinx/source/plugins/python/venv-windows.py	Thu Jan 25 11:33:50 2024 +0100
@@ -0,0 +1,11 @@
+import orthanc
+import sys
+
+print("sys.path before modification: " + ", ".join(sys.path))
+
+sys.path.insert(0, "C:/tmp/.venv/Lib/site-packages")
+
+print("sys.path after modification: " + ", ".join(sys.path))
+
+import requests
+# ....