[Tutor] command line invocation

Alan Gauld alan.gauld at btinternet.com
Sun Jan 17 10:32:02 CET 2010


"Robert" <webtourist at gmail.com> wrote 

> in shell, my current directory is "/tmp",
> are line#3 and #4 --- http://paste.pocoo.org/show/166268/ -
> "equivalent" --- i.e. yielding the same result ?

No need to use pastebin when its only 2 lines!

Since -m runs a module as a script I think the answer is yes. 

Where they would be different is if you were not in the same folder 
as the module. Then the -m option would search the PYTHONPATH 
whereas without -m I think it would not search for the module, you 
would need to specify the location.

I think...

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list