Skip to content

Commit

Permalink
fix: config.toml look up in wrong directory
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed May 24, 2024
1 parent d70fa6f commit 236a462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/endstone/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def save_resources(self, path: str, replace: bool = False) -> None:
out_path = Path(self.data_folder) / path
if not out_path.exists() or replace:
out_path.parent.mkdir(exist_ok=True)
resource = importlib_resources.files().joinpath(path)
resource = importlib_resources.files(self.__class__.__module__).joinpath(path)
with importlib_resources.as_file(resource) as f:
shutil.copy(f, out_path)
else:
Expand Down

0 comments on commit 236a462

Please sign in to comment.