Using the interactive console, $ python >>> import sys >>> sys.argv [''] $ ipy # Both 1.1 and 2.0a5 >>> import sys >>> sys.argv [] Believe it or not, some code depends on sys.argv[0] to be always available. -- Seo Sanghyeon