Skip to content

Commit 48554dd

Browse files
committed
fix(botbase): use str.join because windows
WINDOWS PATHS, WINDOWS PATHS, WINDOWS PATHS. This is not the stupidest thing ever.
1 parent d4476dd commit 48554dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

botbase/botbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def run(self, *args, **kwargs) -> None:
273273
if "extras" in ext.parts or any(part.startswith("_") for part in ext.parts):
274274
continue
275275
if ext.suffix == ".py":
276-
a = str(ext).replace("/", ".")[:-3]
276+
a = ".".join(ext.parts).removesuffix(".py")
277277
log.info("Loading ext %s", a)
278278
self.load_extension(a)
279279
log.info("Loaded ext %s", a)

0 commit comments

Comments
 (0)