We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
>>> include
1 parent 430966f commit e375e05Copy full SHA for e375e05
py/utils.py
@@ -144,6 +144,7 @@ def make_text_file_message(path):
144
try:
145
with open(path, 'r') as file:
146
file_content = file.read().strip()
147
+ path = os.path.relpath(path)
148
return { 'type': 'text', 'text': f'==> {path} <==\n' + file_content.strip() }
149
except UnicodeDecodeError:
150
return { 'type': 'text', 'text': f'==> {path} <==\nBinary file, cannot display' }
0 commit comments