Skip to content

Commit

Permalink
fix: only add resource if text is a different file
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Feb 8, 2023
1 parent f95551e commit 4c9d558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arguebuf/load/_load_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def load_file(
elif isinstance(text_file, str):
text_file = Path(text_file)

if text_file.exists():
if text_file.exists() and text_file != file:
text = text_file.read_text()
graph.add_resource(Resource(text))

Expand Down

0 comments on commit 4c9d558

Please sign in to comment.