[Tutor] accessing another system's environment

Bill Allen wallenpb at gmail.com
Sat Feb 26 16:54:51 CET 2011


Wow!   What an overwhelming response to my inquiry.   All the post have been
very informative and have given me plenty to consider.   I can see now this
is a win32 api question, not really Python.   There has been more than
enough here to point to some resources for win32 api and I have found
library resources for that for Python, so I think I am on my way.  It is
just a matter of finding the right win32 api calls to do what I am wanting
to do.


Thanks again everyone, this was a great help to me.


-Bill








On Wed, Feb 23, 2011 at 21:53, Bill Allen <wallenpb at gmail.com> wrote:

>
> I know that I can use the following to get a listing of the environment of
> my own system.   How can I do similar for another system on my network.
> This is for administrative purposes.
>
> >>> import os
> >>> for param in os.environ.keys():
>     print(param, os.environ[param])
>
> --Bill
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110226/52d98d2b/attachment.html>


More information about the Tutor mailing list