Re: os.mkdir simple help

2006-02-20 Thread XBello
I'm new to python too, but I've read that sys.stdin.readline() is preferred. Is that right? -- http://mail.python.org/mailman/listinfo/python-list

Re: os.mkdir simple help

2006-02-19 Thread m . wanstall
That's got it, thanks Steven! -- http://mail.python.org/mailman/listinfo/python-list

Re: os.mkdir simple help

2006-02-19 Thread Steven D'Aprano
On Sat, 18 Feb 2006 23:51:42 -0800, m.wanstall wrote: > test = input("Please enter project name: ") > setupProject(test) > > If I enter "roger" as my input I get : NameError: name 'roger' is not > defined > > I know it's incredibly simple but help would be much appreciated! > Thanks in advance!

os.mkdir simple help

2006-02-18 Thread m . wanstall
Hi there, I'm totally new to Python and was wondering why I was getting an error for this. I'm just trying to create a folder based on user input: import os def setupProject(project): os.mkdir(project) os.chdir(project) test = input("Please enter project name: ") setupProject(test) If