Re: [Tutor] command line invocation

2010-01-17 Thread Alan Gauld


"Robert"  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/

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] command line invocation

2010-01-17 Thread Robert
Say that I have module "spam.py"  in  "/tmp" which is in PYTHONPATH.

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 ?

Thanks
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor