Skip to content

Commit

Permalink
Only import all of the API when importing sunvox.api
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewryanscott committed Nov 8, 2016
1 parent 7f5a36d commit 6566b48
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 0 additions & 4 deletions sunvox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
__version__ = '0.1.0-1.9.2.0'

from sunvox.dll import *
from sunvox.slot import *
from sunvox.process import *
12 changes: 12 additions & 0 deletions sunvox/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import sunvox.dll
import sunvox.slot
import sunvox.process

from sunvox.dll import *
from sunvox.slot import *
from sunvox.process import *

__all__ = sunvox.dll.__all__ + sunvox.slot.__all__ + sunvox.process.__all__

for __name in __all__:
setattr(sunvox, __name, locals()[__name])
2 changes: 1 addition & 1 deletion tests/test_init_deinit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sunvox
import sunvox.api


def test_init_deinit():
Expand Down

0 comments on commit 6566b48

Please sign in to comment.