Message354856
Just in case this will be of help to anyone, I found a way to use venvs in embedded python.
- You first need to Initialize python that is referred as home in pyvenv.cfg.
- Then you execute the following script:
import sys
sys.executable = r"Path to the python executable inside the venv"
path = sys.path
for i in range(len(path)-1, -1, -1):
if path[i].find("site-packages") > 0:
path.pop(i)
import site
site.main()
del sys, path, i, site |
|
Date |
User |
Action |
Args |
2019-10-17 22:00:00 | pyscripter | set | recipients:
+ pyscripter, ncoghlan, pitrou, vstinner, grahamd, methane, eric.snow, steve.dower |
2019-10-17 22:00:00 | pyscripter | set | messageid: <1571349600.3.0.915286547021.issue22213@roundup.psfhosted.org> |
2019-10-17 22:00:00 | pyscripter | link | issue22213 messages |
2019-10-17 22:00:00 | pyscripter | create | |
|