Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated `__init__.py` and `README.md` to match the master branch
- Loading branch information
1 parent
e8bb2ce
commit d9925f2
Showing
3 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
import sys | ||
import importlib | ||
import pkgutil | ||
|
||
__version__ = '0.0.12' | ||
__version__ = '0.1.0' | ||
|
||
# find and import ladybug plugins | ||
# this is a critical step to add additional functionalities to ladybug core library. | ||
lb_plugins = { | ||
name: importlib.import_module(name) | ||
for finder, name, ispkg | ||
in pkgutil.iter_modules() | ||
if name.startswith('ladybug_') | ||
} | ||
|
||
for key in lb_plugins: | ||
print('Successfully imported Ladybug plugin: {}'.format(key)) | ||
|
||
# This is a variable to check if the library is a [+] library. | ||
setattr(sys.modules[__name__], 'isplus', False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters