Re: [Tutor] os.chdir() will not accept string variable

2011-04-15 Thread Steve Willoughby
On 15-Apr-11 18:00, Rodney Lewis wrote: I cannot get os.chdir() to accept inputData[0]. os.chdir() works as expected in the interpreter when I put the little 'r' before the exact same string but as a literal, e.g.: r"F:\Music\Siouxsie and the Banshees\the rapture" It's because the string in in

[Tutor] os.chdir() will not accept string variable

2011-04-15 Thread Rodney Lewis
I cannot get os.chdir() to accept inputData[0]. os.chdir() works as expected in the interpreter when I put the little 'r' before the exact same string but as a literal, e.g.: r"F:\Music\Siouxsie and the Banshees\the rapture" When I try to run it I get the following error in reference to the os.ch