which should correctly strip arguments in line with sys.argv. Please have a look and tell me what you think. I am just trying to think of cases where it may not work or cause problems. Tested, and appears to work standalone, with pdb and with eclipse.
Thanks Alexander. I have also put a branch up: https:/ /code.launchpad .net/~jspashett /bzr/587868
which should correctly strip arguments in line with sys.argv. Please have a look and tell me what you think. I am just trying to think of cases where it may not work or cause problems. Tested, and appears to work standalone, with pdb and with eclipse.