path.startswith(dir)?

Magnus Lie Hetland mlh at vier.idi.ntnu.no
Sat May 11 11:05:33 EDT 2002


In article <mailman.1021060340.12827.python-list at python.org>, Sean
'Shaleh' Perry wrote:
>> 
>> This ought to be a safe/platform independent way of doing it, right?
>
>look at os.path. 
>

If you look at my posting again, you may recognise the function names.
Then add a

  from os.path import *

or something to the top... And perhaps take a look at the question
again? ;)

(Sorry for not being absolutely clear about this -- the os.path part
was just so obvious to me.)

--
Magnus Lie Hetland                                  The Anygui Project
http://hetland.org                                  http://anygui.org



More information about the Python-list mailing list