mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-08-03 03:56:10 -04:00
Clean up importlib imports
This commit is contained in:
parent
f8925eaed1
commit
f9d42082a2
12 changed files with 14 additions and 14 deletions
|
@ -49,7 +49,7 @@ pyc_modules = glob.glob(os.path.dirname(__file__)+"/*.pyc")
|
|||
modules = py_modules+pyc_modules
|
||||
__all__ = list(set([os.path.basename(f).replace(".pyc", "").replace(".py", "") for f in modules if not (f.endswith("__init__.py") or f.endswith("__init__.pyc"))]))
|
||||
|
||||
import importlib
|
||||
import importlib.util
|
||||
if importlib.util.find_spec("cython"): import cython; compiled = cython.compiled
|
||||
else: compiled = False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue