Re: Hello World-ish



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
.



Relevant Pages

  • Re: .NET
    ... At 01:02:40, 29.08.2005, Fedaykin wrote: ... -- Seymour Cray, father of supercomputing ... Prev by Date: ...
    (borland.public.delphi.non-technical)
  • Bob Moog Died
    ... Father of the Synthesizer Revolution Robet A. Moog passed away: ... His contribution to modern hindi film music can't be described in words ... Prev by Date: ...
    (rec.music.indian.misc)
  • Re: The Mathematics of "infinities" : 8+8=&
    ... talk about "in the name of the Father, The son and Holy spirit" ... Prev by Date: ...
    (soc.culture.iranian)
  • 15 guys "Probable"
    ... guy, the ball boy, Belichick's father and the snowplow driver ... Prev by Date: ...
    (alt.sports.football.pro.ne-patriots)
  • Re: OT: Soldier Reports More Abuses to Senator
    ... > Ronald Reagan's Star Wars projects are the father of today's ... The Strategic Defense Initiative was a complete failure. ... Prev by Date: ...
    (alt.guitar.amps)