Home directory problem
Nagy László Zsolt
nagylzs at freemail.hu
Mon Jun 9 16:50:25 EDT 2003
Mike C. Fletcher wrote:
> This is the kind of thing that should really be in a module in the
> standard library, with lots of testing/collaboration establishing a
> robust solution. I don't really have time to build such a thing, but
> here's a start that might help someone else work it up (attached).
> Notes:
> On Win32 you're not supposed to dump data into the user's
> profile/home directory, you're supposed to use a sub-directory in the
> AppData directory (or the Local App Data directory for non-roaming
> apps). I haven't tested the module on Linux, but it's pretty
> simplistic on that side. I'd rather see the seperate mechanisms for
> finding directories broken out into seperate functions for easier
> testing/verification/reuse. There should really be mechanisms for
> retrieving the other shell-folder types (e.g. ttf font directories,
> profile directories, desktop directories, menu directories, in other
> words, a cross-platform version of Win32's SHGetFolderPath would be
> nice :) .
>
> Oh well, it's a quick hack, you get what you pay for :) .
>
> HTH,
> Mike
This is really something that should be in the standard library.
Although, you code requires winall extensions. :-) I'm scared about Mac
users too.
Thank you very much! :-)
Laci 1.0
More information about the Python-list
mailing list