Chris Angelico rosuav at
Thu Sep 10 06:34:53 CEST 2015

On Thu, Sep 10, 2015 at 1:58 PM, chenchao at
<chenchao at> wrote:
> hi:
>    This is not a question about python. It is a shell question. I'm sorry to
> bother you. But I really want to know it. As follow:
>    I want to set a shell environment variable:PYTHONPATH. When i execute
> echo $PYTHONPATH, it is
> value:/usr/lib/python/Lib:/usr/lib/python/lib/
> Now, I want to add value to it. The value is all files in a folder with
> end. For install, directory(/var/app/python/libs/) include,
>, and so on. So I want to add
> value:/var/app/python/libs/, /var/app/python/libs/,
> /var/app/python/libs/ to environment variable:PYTHONPATH. I execute
> cmd: export PYTHONPATH='/var/app/python/libs/*zip':$PYTHONPATH, but its
> value is not correct. So, how can i do this? My program use setenv to set
> environment variable.

Sounds to me like you want something like this:

If that's not the case, can you elaborate a bit on what you're trying
to do, preferably in pure text rather than relying on HTML?


More information about the Python-list mailing list