mirror of
https://github.com/python/cpython.git
synced 2026-05-18 10:24:42 -04:00
Issue #6635: Fix profiler printing usage message.
This commit is contained in:
+2
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user