mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
parent
567e9611df
commit
b0c011c70c
@ -1139,7 +1139,7 @@ class Client(Methods, BaseClient):
|
|||||||
|
|
||||||
if include is None:
|
if include is None:
|
||||||
for path in sorted(Path(root).rglob("*.py")):
|
for path in sorted(Path(root).rglob("*.py")):
|
||||||
module_path = os.path.splitext(str(path))[0].replace("/", ".")
|
module_path = '.'.join(path.parent.parts + (path.stem,))
|
||||||
module = import_module(module_path)
|
module = import_module(module_path)
|
||||||
|
|
||||||
for name in vars(module).keys():
|
for name in vars(module).keys():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user