1
0
Fork 0
powerline/tests/test_shells/pdb-main.py
Daniel Baumann 52d7687863
Adding upstream version 2.8.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 14:32:14 +02:00

24 lines
454 B
Python

# vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, division, absolute_import, print_function)
import pdb
import os
import sys
from powerline.bindings.pdb import use_powerline_prompt
@use_powerline_prompt
class Pdb(pdb.Pdb):
pass
p = Pdb()
script = os.path.join(os.path.dirname(__file__), 'pdb-script.py')
with open(script, 'r') as fd:
code = compile(fd.read(), script, 'exec')
p.run('exec(code)', globals={'code': code})