Hmm, in some cases we don't seem to get our scriptname in argv[0].
Cater for that by working from sys.executable.
1 file changed