Skip to content

Commit 68812af

Browse files
committed
BUG: Set ioff to avoid immediate close
1 parent e3fc5ee commit 68812af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mprof.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def run_action():
202202
'Option 4: (--python flag present) "<PYTHON_MODULE> <ARG1> <ARG2>..." - profile python module\n'
203203
)
204204
args = parser.parse_args()
205-
205+
206206
if len(args.program) == 0:
207207
print("A program to run must be provided. Use -h for help")
208208
sys.exit(1)
@@ -517,6 +517,7 @@ def xlim_type(value):
517517
print("matplotlib is needed for plotting.")
518518
print(e)
519519
sys.exit(1)
520+
pl.ioff()
520521

521522
profiles = glob.glob("mprofile_??????????????.dat")
522523
profiles.sort()

0 commit comments

Comments
 (0)