Skip to content

Commit

Permalink
For PDB and IPDB, we don't need to mess with the path
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank committed Feb 19, 2024
1 parent 4079ce4 commit 1acc9e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
16 changes: 4 additions & 12 deletions src/chatdbg/__imain__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
import os
import pathlib
import sys

the_path = pathlib.Path(__file__).parent.resolve()

sys.path.insert(0, os.path.abspath(the_path))

from .chatdbg_ipdb import *

import ipdb

ipdb.__main__._get_debugger_cls = lambda : ChatDBG
from . import chatdbg_ipdb

ipdb.__main__._get_debugger_cls = lambda : chatdbg_ipdb.ChatDBG

def main():
ipdb.__main__.main()
ipdb.__main__.main()
4 changes: 0 additions & 4 deletions src/chatdbg/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import os
import pathlib
import sys

from . import chatdbg

chatdbg.main()

0 comments on commit 1acc9e0

Please sign in to comment.