[Spambayes] Details in headers

Meyer, Tony T.A.Meyer at massey.ac.nz
Wed Jan 29 10:23:08 EST 2003


[Piers]
> The recommended way to get this path is to call: 
> SHGetSpecialFolderPath (,,CSIDL_APPDATA,FALSE); 
> Remember, the user may not have write access to the spambayes installation directory. 

Hmm...yes I should have said that.  Although:

from win32com.shell import shell, shellcon
path = shell.SHGetSpecialFolderPath(0, shellcon.CSIDL_APPDATA)

is somewhat less c and somewhat more python.  (I think this defaults to the third (create directory) parameter being false).

=Tony Meyer



More information about the Spambayes mailing list