Merge branch 'microsoft' of github.com:alemidev/treepuncher into microsoft

This commit is contained in:
əlemi 2022-04-26 23:24:13 +02:00
commit aeea271547
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E

View file

@ -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
@ -25,7 +26,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():