Re: Run external script with Django cron

2010-04-27 Thread Shawn Milochik
> > And what is difference between PATH and PYTHONPATH? Appending to your environment's PATH means you'll be able to execute files without specifying the full path. For example, instead of having to do ./filename.py you can just use filename.py to call a Python script. This is just a *nix

Re: Run external script with Django cron

2010-04-27 Thread Alexis Selves
On 27 dub, 22:26, Shawn Milochik wrote: > I don't understand what the problem is. What error message are you getting? > > Are you confusing PATH and PYTHONPATH? > > Shawn > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Run external script with Django cron

2010-04-27 Thread Alexis Selves
problem is, that I cannot import file db.py to another python script pokus.py when i try to execute my pokus.py I got this: home/ petarda/pokus.py does not point to a directory Is it clear now? And what is difference between PATH and PYTHONPATH? Thanks for help. On 27 dub, 22:26, Shawn Milochik

Re: Run external script with Django cron

2010-04-27 Thread Shawn Milochik
I don't understand what the problem is. What error message are you getting? Are you confusing PATH and PYTHONPATH? Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To

Run external script with Django cron

2010-04-27 Thread Alexis Selves
Hi there, I have problem with django cron and calling external script. I am trying this first in another file pokus.py: sys.path.append('/home/petarda/Django/gheat-0.2/__/') from bin import db bin is child directory of '__' which contains __init__.py and db.py which include method that I need