[python-win32] application data

Tim Roberts timr at probo.com
Mon Mar 13 19:16:39 CET 2006


On Fri, 10 Mar 2006 12:48:28 -0500, "James Carroll" <mrmaple at gmail.com>
wrote:

>Cool, I might just do that myself.  My "My Documents" directory is
>C:\jimc and I really like it like that.
>
>As long as his ALLUSERSPROFILE is right, then my code should work:
>
>        allUsersAppData = os.environ["ALLUSERSPROFILE"]
>        # dns = Documents and Settigns usually
>        dns = os.path.join(allUsersAppData, "..")
>        (root, subdirs, files) = os.walk(dns).next()
>
>        dlg = wx.lib.dialogs.MultipleChoiceDialog(self,
>          "Choose the user's profile directory"
>          "Migrate settings for a user", subdirs, (200,200))
>
>Whadayathink?
>


No, that's no better.  In many corporate environments, your personal
profile lives on a net share, while the "All Users" profile is always on
the local hard disk.

The only reliable way is to whack through the registry.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list