Re: os.mkdir simple help
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
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! input takes the user-entered string and evaluates it as a Python expression. You want raw_input(). -- Steven. -- http://mail.python.org/mailman/listinfo/python-list
Re: os.mkdir simple help
That's got it, thanks Steven! -- http://mail.python.org/mailman/listinfo/python-list
os.mkdir simple help
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 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! -- http://mail.python.org/mailman/listinfo/python-list