On Fri, 10 Mar 2006 12:48:28 -0500, "James Carroll" <[EMAIL PROTECTED]>
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, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to