Merge branch 'microsoft' of github.com:alemidev/treepuncher into microsoft
This commit is contained in:
commit
aeea271547
1 changed files with 2 additions and 1 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
|
||||||
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue