No such directory?
Charl P. Botha
cpbotha at i_triple_e.org
Mon Jun 10 16:05:08 EDT 2002
In article <886c5e4b.0206101158.680c6278 at posting.google.com>,
Robin Siebler wrote:
> When I try to change into a certain directory, I get an errorm message
> that states the directory doesn't exist. The directory does exist,
> however, and the listdir function shows that it exists. What gives?
>
>>>> os.chdir('c:\\18_510GMC1\\18_510GMC1')
^
>>>> os.getcwd()
> 'c:\\18_510GMC1'
>>>> os.listdir(os.getcwd())
> ['18_510GMC']
^ no 1 at the end.
You made a typo.
Python: 1. You: 0. ;)
--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
More information about the Python-list
mailing list