[Tutor] How to Split a String
Paras K.
paras80 at gmail.com
Sat Aug 8 20:33:33 CEST 2009
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.
How can I split it so I get mail02.
Any help in greatly appreciated.
Thanx,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090808/afb16636/attachment.htm>
More information about the Tutor
mailing list