Re: [Tutor] raw_input a directory path

2010-05-13 Thread Hugo Arts
On Fri, May 14, 2010 at 2:37 AM, Dave Angel wrote: > The other approach is to have the user type in the text according to some > escaping language (like the one used for literals), and explicitly decode > that after the raw_input().  I thought there was a way in the stdlib, but I > can't seem to f

Re: [Tutor] raw_input a directory path

2010-05-13 Thread Hugo Arts
On Fri, May 14, 2010 at 12:17 AM, Spencer Parker wrote: > In these files I also have some special characters I need to remove, but I > cannot figure out how to specify this. > I need to remove a vertical tab and a formfeed character.  How would I > specify to remove these characters?  I have tried

Re: [Tutor] raw_input a directory path

2010-05-13 Thread Spencer Parker
In these files I also have some special characters I need to remove, but I cannot figure out how to specify this. I need to remove a vertical tab and a formfeed character. How would I specify to remove these characters? I have tried \v and \f On Thu, May 13, 2010 at 8:48 AM, Spencer Parker wrot

Re: [Tutor] raw_input a directory path

2010-05-13 Thread Spencer Parker
I figured out the issue...for some reason it works with the trailing slash, but not without it. Once I do that...everything is all good... On Wed, May 12, 2010 at 8:00 PM, Dave Angel wrote: > > > Spencer Parker wrote: > >> Here is the code: >> http://dpaste.com/hold/193862/ >> >>

Re: [Tutor] raw_input a directory path

2010-05-12 Thread Dave Angel
Spencer Parker wrote: Here is the code: http://dpaste.com/hold/193862/ It still isn't working for me. I don't see it hitting the first for loop or even the second one. It runs without an error at all. I am inputing the directory as: \\Documents\ and\ Settings

Re: [Tutor] raw_input a directory path

2010-05-12 Thread Alan Gauld
"Spencer Parker" wrote Here is the code: http://dpaste.com/hold/193862/ First comment: why are you using print followed by raw_input? You could put the prompt string inside raw_input - if you need a new line just put a \n in the prompt string. It will shorten and clarify the code.

Re: [Tutor] raw_input a directory path

2010-05-12 Thread Spencer Parker
esktop\\test On Wed, May 12, 2010 at 3:07 PM, Spencer Parker wrote: > Spreading it to the list... > > > -- Forwarded message -- > From: Spencer Parker > Date: Wed, May 12, 2010 at 3:07 PM > Subject: Re: [Tutor] raw_input a directory path > To: Luke Paire

Re: [Tutor] raw_input a directory path

2010-05-12 Thread Luke Paireepinart
On Wed, May 12, 2010 at 2:44 PM, Spencer Parker wrote: > I have a search and replace script that I am having the user put in the > directory path as raw_input.  The problem lies when I run the script it > doesn't pick that up for some reason.  Is there an appropriate way to take a > directory path

Re: [Tutor] raw_input a directory path

2010-05-12 Thread spir ☣
On Wed, 12 May 2010 13:44:30 -0600 Spencer Parker wrote: > I have a search and replace script that I am having the user put in the > directory path as raw_input. The problem lies when I run the script it > doesn't pick that up for some reason. Is there an appropriate way to take a > directory p