import os is not

Alex Martelli aleaxit at yahoo.com
Thu Sep 14 11:53:27 CEST 2000


"Jerry L Kreps" <jk05308 at navix.net> wrote in message
news:968909069.343094523 at news.navix.net...
> So how do I do things like chown, chmod, cd, cp, rm, mv if 'import os'
doesn't
> work?  Strange, open(path) does work, and it is part of the os list given
in
> the docs. ????
> JLK

There is a *builtin* open (which is normally what you use) as well
as os.open.  Is it just a syntax problem -- does os.chown(path,uid,gid)
work...?  Remember you do have to say os.whatever() after import os...


Alex






More information about the Python-list mailing list