Merged revisions 74773 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74773 | matthias.klose | 2009-09-13 17:09:24 +0200 (So, 13 Sep 2009) | 2 lines

  Issue #6635: Fix profiler printing usage message.
........
This commit is contained in:
Matthias Klose 2009-09-13 15:12:47 +00:00
parent 429e34a3a5
commit 582357733e
2 changed files with 4 additions and 2 deletions

View file

@ -605,9 +605,9 @@ def main():
sys.exit(2)
(options, args) = parser.parse_args()
sys.argv[:] = args
if (len(sys.argv) > 0):
if (len(args) > 0):
sys.argv[:] = args
sys.path.insert(0, os.path.dirname(sys.argv[0]))
run('execfile(%r)' % (sys.argv[0],), options.outfile, options.sort)
else: