On May 27, 6:13 pm, emy_66 <emily.sau...@gmail.com> wrote:
> My django site isn't able to read my environmental variable - PATH -
> when run by mod_python. In my .profile file my path is /usr/local/
> ncbi:/usr/local/bin. This gives me access to programs I call using
> subprocess from django. Could I get your advice as to what I should
> do? A search on google tells me to set global variables I should go
> to /etc/profile but I really have no idea.
That will not work because Apache typically is run from root
environment and not your personal environment.
The better way of doing things is not rely on stuff being found in
PATH anyway, and giving a full path name to the program you want to
execute.
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---