Syntax

calad.sigilon at gmail.com calad.sigilon at gmail.com
Sat Nov 26 23:18:01 EST 2005


If you use 'from os import *' then you shouldn't preface the commands
with os.

So, two options:

from os import *
print "Working Path: %s" % getcwd()

OR

import os
print "Working Path: %s" % os.getcwd()

One of these two ways you're not supposed to use for security reasons,
but I'm spacing on which one.




More information about the Python-list mailing list