I'm not sure if that's the main problem but you also have to export
environment variables so that other shell scripts can see them.
Example (bash):
MYVALUE="1234"
python
>>> import os
>>> os.environ.get('MYVALUE')
---> (nothing)
MYVALUE="1234"
export MYVALUE
python
>>> import os
>>> os.environ.get('MYVALUE')
---> '1234'
Hope that helps.
-- enkei
On 15 Feb., 04:50, "Rainy" <[EMAIL PROTECTED]> wrote:
> Hi, I need to stop kid from deleting those .py files and I searched
> the group and found out that I need to set KID_OUTPUT_PY to "true" to
> do that. I did, and still there is no .py files. Am I doing this
> right?
>
> [EMAIL PROTECTED]:~/reg$ KID_OUTPUT_PY=1
> [EMAIL PROTECTED]:~/reg$ echo $KID_OUTPUT_PY
> 1
>
> [then run turbogears]
>
> TG is 1.0.1 version..
>
> Then I go to templates and list:
>
> [EMAIL PROTECTED]:~/reg/reg/templates$ ls *.py
> __init__.py master.py upload_users.py
>
> The file in question would be called edit_location.py and it's not
> there as you can see.. Where am I screwing up, exactly?
>
> thx!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---