Skip to content

Commit

Permalink
fix: fix double import for openems.__main__ (#22)
Browse files Browse the repository at this point in the history
previous code has double import and it show below error
```
<frozen runpy>:128: RuntimeWarning: 'openems.__main__' found in
sys.modules after import of package 'openems', but prior to
execution of 'openems.__main__'; this may result in unpredictable
behaviour
```
  • Loading branch information
miettal authored Nov 4, 2024
1 parent f3298af commit 72e873f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion openems/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
"""OpenEMS."""
from . import __main__ # noqa
from . import api # noqa

0 comments on commit 72e873f

Please sign in to comment.