Fw: [Idle-dev] config files

Neil Hodgson neilh@scintilla.org
Sat, 4 Mar 2000 13:25:53 +1100


> > Question for Windows users: What is a natural place for a per-users
> > config file?  On Unix, I'm looking in "%s/.idle" % os.environ['HOME'].
> > HOME is defined on Guido's Windows box, but I don't know that I can
> > depend on it.
>
>    The preferred place these (W2K) days is
>
> [CSIDL_APPDATA]\[User]\Application Data\[Company Name]\[Product Name]
>
>    The string value of CSIDL_APPDATA is found by calling ShGetFolderPath.
>
>    Putting files here ensures they handle 'roaming' correctly and follow
the
> user around to any machine they work on.
>
>    A high level article that talks about this is:
> http://www.microsoft.com/MSJ/0899/logo/logotop.htm
>    For more specifics there is a specification at:
> http://msdn.microsoft.com/certification/appspec.asp
>
>    For earlier versions of Windows, there is a redistributable
SHFOLDER.DLL
> that will do the right thing.
>
>    Neil