Is there any difference between:
__file__
and
sys.argv[0]
Because both seem to be doing the same thing: they hold
Actually argv[0] might be a script name or a full path to the script + script name, depending on the os.
Here's the entry in official documentation http://docs.python.org/py3k/library/sys.html#sys.argv