On Mon, 4 Oct 2004 10:01:10 -0400, Aahz
On Mon, Oct 04, 2004, Raymond Hettinger wrote:
Could Nick's idea be done without an -m option? If a user types, "python abc.py" and "abc.py" is not found, before aborting, try looking for it on sys.path.
-1 -- too much magic
It's exactly what virtually every shell does. I sincerely don't think this would come up as surprise. On the other hand, I've often became frustrated to have to type long (I mean looooong) paths by hand, without autocompletion to help (welcome to the Windows DOS box!), just to discover that the script wasn't exactly at *that* point, but still it could be found somewhere down the path. (Just to mention, and for the sake of completeness: instead of sys.path, it could search on the shell path... but that's not a good solution either, it seems even more arbitrary) OTOH, I'm also a little bit concerned about YACLO, because there's always more cruft to add. And finally, why '-m'? Just because this letter was available ;-) ? I think that for some stuff, long names are better, even if I have to type them sometimes, and specially if I can have the default stored somewhere. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: carribeiro@gmail.com mail: carribeiro@yahoo.com