Re: site package does not work

2018-06-06 Thread Peter Otten
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

Re: site package does not work

2018-06-06 Thread Jim Lee
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

site package does not work

2018-06-05 Thread Erik Martinson via Python-list
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