Why doesn't Python remember the initial directory?
Laszlo Nagy
gandalf at shopzeus.com
Sun Aug 19 17:05:10 EDT 2012
On 2012-08-19 22:42, kj wrote:
>
> As far as I've been able to determine, Python does not remember
> (immutably, that is) the working directory at the program's start-up,
> or, if it does, it does not officially expose this information.
>
> Does anyone know why this is? Is there a PEP stating the rationale
> for it?
>
> Thanks!
When you start the program, you have a current directory. When you
change it, then it is changed. How do you want Python to remember a
directory? For example, you can put it into a variable, and use it
later. Can you please show us some example code that demonstrates your
actual problem?
More information about the Python-list
mailing list