Thanks Diez and Nicolas.. it works now. I actually did export it
in .bashrc, but i did source .bashrc in a different tab of konsole,
and I guess they don't share environment vars. I also thought for some
reason that exporting is only needed in .bashrc. thx again!

On Feb 15, 5:44 am, "Nicolas Keller" <[EMAIL PROTECTED]> wrote:
> 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
>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to