RE: Windows User path

Georg Bauer <gb-BRhJDZTO+/[email protected]> Fri, 26 Mar 2004 22:09:20 +0100
Newsgroups gmane.comp.pythin.pyds.devel
Message-ID <r02010100-1028-DA3AA6F47F6911D8A517000A9573A72A@[10.0.0.145]>
Hi!

> The only environment variable that I set is HOME, in the PyDS startup
> script(Windows batch file):

The PyDS code does some path magic to find the place where the .PyDS
directory (that I named .Toolserver accidently, because I was mentally
in the wrong project ;-) ) should stay. They  use %HOMEDRIVE% and
%HOMEDIR% (or was it %HOMEPATH%?) to find what under Unix would be just
$HOME, the users home directory. %USERPROFILE% is a standard environment
variable that points to c:\system\Profiles\USERNAME - so it's something
that is user specific.

Think of a Windows Terminalserver where several users run programs.
Think of two users trying to use PyDS. With the current scheme (either
with the defined %HOME% as in your script, or with the
%HOMEDRIVE%%HOMEPATH% as used with the PyDS path magic) the .PyDS
directory is shared - so actually only one PyDS is running.

When we switch to %USERPROFILE%, we will be able to run several PyDS
installations on one machine in different user accounts - that's much
like Unix in that regard.

> snippet is the default and is required because Windows, unlike unix, 
> does
> not have an environment variable called HOME. ".PyDS" is created below 

Yep, but it has %USERPROFILE% :-)

bye, Georg