On Sat, Aug 8, 2009 at 2:33 PM, Paras K.<[email protected]> wrote:
> What I am trying to do is find the mail folder for our lotus notes files.
>
> I get it by doing the following:
>
> lotusnotesmaildir = glob.glob('C:\Documents and Settings/pkinariwala/Local
> Settings/Application Data/lotus/notes/data/'+'*mail*/')
>
> That returns: ['C:\\Documents and Settings/pkinariwala/Local
> Settings/Application Data/lotus/notes/data\\mail02\\']
>
> What I am trying to do is split the mail folder, in this case it would be
> mail02, but not all users would have that same mail folder.

See os.path.basename()

Kent
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to