Re: Hello World-ish
- From: Jesse Lands <jglands@xxxxxxxxxxxxx>
- Date: Sat, 26 Nov 2005 07:28:45 +0000
On 26 Nov 2005 03:19:55 -0800
"ludvig.ericson@xxxxxxxxx" <ludvig.ericson@xxxxxxxxx> wrote:
> from os import *
> print "Working path: %s" % os.getcwd();
>
> Just wondering how you would do that .. in theory, if you get what I
> mean?
> I get
> NameError: name 'os' is not defined
> currently, which I don't know how to fix.. anyone?
>
your using the getcwd from os. You need to change the 'from os import
*' to import os
i.e.
import os
print "Working path: %s" % os.getcwd()
--
JLands
Slackware 9.1
Registered Linux User #290053
"If you were plowing a field, which would you rather use? Two strong
oxen or 1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing
.
- Prev by Date: Re: Any way to change files in a ZIP archive?
- Next by Date: Re: best cumulative sum
- Previous by thread: Mail Delivery System
- Next by thread: Re: Hello World-ish
- Index(es):
Relevant Pages
|