And the reverse? Does os also import os.path?

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Thu Mar 27 13:22:11 EDT 2008


Wilbert Berendsen a écrit :
> If i do
> 
>>>> import os
>>>> os.path.abspath("bla")
> '/home/wilbert/bla'
> 
> it seems that just import os also makes available al os.path functions.
> 
> But is that always true?

Nope. Not all packages expose their sub-packages.




More information about the Python-list mailing list