mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Use relative imports
This commit is contained in:
parent
8786be535e
commit
e7f0b02e43
1 changed files with 4 additions and 4 deletions
|
@ -41,10 +41,10 @@ class Serf(abc.ABC):
|
||||||
log.debug(f"Importing pack: {pack_name}")
|
log.debug(f"Importing pack: {pack_name}")
|
||||||
try:
|
try:
|
||||||
packs[pack_name] = {
|
packs[pack_name] = {
|
||||||
"commands": importlib.import_module(f"{pack_name}.commands"),
|
"commands": importlib.import_module(f".commands", pack_name),
|
||||||
"events": importlib.import_module(f"{pack_name}.events"),
|
"events": importlib.import_module(f".events", pack_name),
|
||||||
"stars": importlib.import_module(f"{pack_name}.stars"),
|
"stars": importlib.import_module(f".stars", pack_name),
|
||||||
"tables": importlib.import_module(f"{pack_name}.tables"),
|
"tables": importlib.import_module(f".tables", pack_name),
|
||||||
}
|
}
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
log.error(f"{e.__class__.__name__} during the import of {pack_name}:\n"
|
log.error(f"{e.__class__.__name__} during the import of {pack_name}:\n"
|
||||||
|
|
Loading…
Reference in a new issue