[Python-ideas] os.listdir default to '.'
Oleg Broytman
phd at phdru.name
Thu Jan 12 16:39:27 CET 2012
On Thu, Jan 12, 2012 at 03:02:52PM +0000, Michael Foord wrote:
> I frequently use Python from the interactive interpreter as a shell. It is
> a frequent, but mild, irritant that I have to type os.listdir('.') instead
> of just os.listdir().
Not exactly what you've asked but let me show you my config for
interactive sessions: http://phdru.name/Software/dotfiles/init.py.html
You can type
>>> cd('/etc')
>>> ls
and got back the list. (-:
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas
mailing list