[Toolserver-l] Re : Scheduling a pywikipedia bot

Platonides platonides at gmail.com
Sun Apr 24 21:34:23 UTC 2011


Grimlock wrote:
> Doing a sys.path.append(whatever) is uneffective when you have to schedule a 
> python work (I tested it yersteday).
> The issue that Junaid indicated and the answer given is, in my mind, the only 
> one for the moment.
> 
> Grimlock

The generic way to change the current working dir for a cron would be:

1 2 3 4 cd $HOME/scripts/pywikipedia && python $HOME/vandalize.py




More information about the Toolserver-l mailing list