Re: [gDesklets] Http Proxy

On 02/12/2007, Bjoern Koch <H Humpel gmx de> wrote:
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> NameError: name 'export' is not defined
> >>> export HTTP_PROXY=
>   File "<stdin>", line 1
>     export HTTP_PROXY=
>                     ^
> SyntaxError: invalid syntax
> -------

 If you want to use an environment variable you've got to do something like:

# (this file will named
import os
print os.environ["HELLO"]

And in the terminal for testing purposes you can do

mario localhost:~$ HELLO="Hello world" python
Hello world


> But I am neither a python nor a bash guru ;).
> Hope I am not too wrong and that I could help...


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]