Re: problems with opening files due to file's path
- From: Carsten Haese <carsten.haese@xxxxxxxxx>
- Date: Wed, 11 Jun 2008 08:40:28 -0400
Alexnb wrote:
I don't think you understand it doesn't matter how the variable gets there
But it *does* matter. Compare this:
py> filename = "C:\Somewhere\01 - Some Song.mp3"
py> print filename
C:\Somewhere - Some Song.mp3
To this:
py> filename = raw_input("Enter the filename: ")
Enter the filename: C:\Somewhere\01 - Some Song.mp3
py> print filename
C:\Somewhere\01 - Some Song.mp3
Note that the "\01" in the first case seems to have disappeared, whereas in the second case it's preserved.
Now, if you want us to help you, please post your ACTUAL code with a description of the ACTUAL problem.
--
Carsten Haese
http://informixdb.sourceforge.net
.
- References:
- Re: problems with opening files due to file's path
- From: Mike Driscoll
- Re: problems with opening files due to file's path
- From: Mike Driscoll
- Re: problems with opening files due to file's path
- From: Mike Driscoll
- Re: problems with opening files due to file's path
- From: Grant Edwards
- Re: problems with opening files due to file's path
- From: Carsten Haese
- Re: problems with opening files due to file's path
- From: Alexnb
- Re: problems with opening files due to file's path
- Prev by Date: Re: Dynamic HTML from Python Script
- Next by Date: Numpy array to gzip file
- Previous by thread: Re: problems with opening files due to file's path
- Next by thread: Re: problems with opening files due to file's path
- Index(es):