Skip to content

Commit

Permalink
chore: 更新依赖项和 Ruff 设置 (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
st1020 authored Jul 1, 2024
1 parent 1febb25 commit ca3db21
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 227 deletions.
2 changes: 1 addition & 1 deletion alicebot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def _load_plugins(
except OSError:
continue
if plugin_module_name is None:
rel_path = plugin_.resolve().relative_to(Path().resolve())
rel_path = plugin_.resolve().relative_to(Path().cwd())
if rel_path.stem == "__init__":
plugin_module_name = ".".join(rel_path.parts[:-1])
else:
Expand Down
Loading

0 comments on commit ca3db21

Please sign in to comment.