Skip to content

Commit

Permalink
fixed path error
Browse files Browse the repository at this point in the history
  • Loading branch information
pldi21 committed Feb 14, 2024
1 parent 393a6d5 commit 2fb5649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chatdbg/chatdbg.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
function call in the code, or that appears on the call stack.
The root cause of any error is likely due to a problem in the source code within
the {os.path.dirname(sys.argv[0])} directory.
the {os.getcwd()} directory.
Keep your answers under about 8-10 sentences. Conclude each response with
either a propopsed fix if you have identified the root cause or a bullet list of
Expand Down Expand Up @@ -108,7 +108,7 @@ def __init__(self, *args, **kwargs):
self._error_specific_prompt = ''

def _is_user_file(self, file_name):
return file_name.startswith(os.path.dirname(sys.argv[0]))
return file_name.startswith(os.getcwd())

def grab_active_call_from_frame(self, tb):
"""
Expand Down

0 comments on commit 2fb5649

Please sign in to comment.