windows fix
This commit is contained in:
parent
91afbbc28a
commit
b92791ce04
2 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
import argparse
|
import argparse
|
||||||
|
@ -24,7 +25,7 @@ def main():
|
||||||
addons : Set[Type[Addon]] = set()
|
addons : Set[Type[Addon]] = set()
|
||||||
|
|
||||||
for path in sorted(addon_path.rglob('*.py')):
|
for path in sorted(addon_path.rglob('*.py')):
|
||||||
py_path = str(path).replace('/', '.').replace('.py', '')
|
py_path = str(path).replace('/', '.').replace('\\', '.').replace('.py', '')
|
||||||
try:
|
try:
|
||||||
m = import_module(py_path)
|
m = import_module(py_path)
|
||||||
for obj_name in vars(m).keys():
|
for obj_name in vars(m).keys():
|
||||||
|
|
|
@ -235,7 +235,9 @@ class Treepuncher(
|
||||||
await super().start()
|
await super().start()
|
||||||
if not self.notifier:
|
if not self.notifier:
|
||||||
self.notifier = Notifier(self)
|
self.notifier = Notifier(self)
|
||||||
|
await self.notifier.initialize()
|
||||||
for m in self.modules:
|
for m in self.modules:
|
||||||
|
if not isinstance(m, Notifier):
|
||||||
await m.initialize()
|
await m.initialize()
|
||||||
self._processing = True
|
self._processing = True
|
||||||
self._worker = asyncio.get_event_loop().create_task(self._work())
|
self._worker = asyncio.get_event_loop().create_task(self._work())
|
||||||
|
|
Loading…
Reference in a new issue