##// END OF EJS Templates
Support relative import in "%run -m"
Takafumi Arakaki -
Show More
@@ -593,14 +593,18 b' python-profiler package from non-free.""")'
593 593 # user (run by exec in pdb itself).
594 594 self.shell.InteractiveTB(etype, value, tb, tb_offset=3)
595 595 else:
596 if runner is None:
597 runner = self.default_runner
598 if runner is None:
599 runner = self.shell.safe_execfile
600
601 def run():
602 runner(filename, prog_ns, prog_ns,
603 exit_ignore=exit_ignore)
596 if 'm' in opts:
597 def run():
598 self.shell.safe_run_module(modulename, prog_ns)
599 else:
600 if runner is None:
601 runner = self.default_runner
602 if runner is None:
603 runner = self.shell.safe_execfile
604
605 def run():
606 runner(filename, prog_ns, prog_ns,
607 exit_ignore=exit_ignore)
604 608
605 609 if 't' in opts:
606 610 # timed execution
General Comments 0
You need to be logged in to leave comments. Login now