alankan886/SuperMemo2

Can't Import supermemo2.models

Closed this issue · 1 comments

>>> import supermemo2.models
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'supermemo2.models'

Ah good catch again @Eikosa,

I think a small fix of adding from .models import SMTwo under supermemo2/_init_.py should fix this.

I will be working on those fixes and some updates this weekend, but the fixes are open to grab.

Thanks again!


Edit:

The doc for class SMTwo is misleading right now. After the fix, the class SMTwo should be imported using from supermemo2 import * or from supermemo2 import SMTwo.