Skip to content

Commit

Permalink
Call expanduser on file paths opened in chats.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaph committed Jul 24, 2024
1 parent d0ea71c commit 5e8f420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charla/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_content(source: str) -> str:
print(f'Enter an existing URL.\n{err}\n')
else:
try:
content = Path(source).read_text()
content = Path(source).expanduser().read_text()
except (FileNotFoundError, PermissionError) as err:
print(f'Enter name of an existing file.\n{err}\n')

Expand Down

0 comments on commit 5e8f420

Please sign in to comment.