Erik Martinson via Python-list wrote:
> I am trying to dynamically add a site-package to a script that is run as a
> cron job. The method adduseristepackages does not seem to do anything.
The function addusersitepackages() seems to be un(der)documented; looking at
the source it turns out that th
On 06/05/2018 01:33 PM, Erik Martinson via Python-list wrote:
I am trying to dynamically add a site-package to a script that is run as a cron
job. The method adduseristepackages does not seem to do anything.
import sys
import site
print('-')print(site.getusersitepackag
I am trying to dynamically add a site-package to a script that is run as a cron
job. The method adduseristepackages does not seem to do anything.
import sys
import site
print('-')print(site.getusersitepackages())
print('add',
site.addusersitepackages('/home/erik/.local/l