diff --git a/python/pymei/exceptions.py b/python/pymei/exceptions.py index bbb523f1..28a8a825 100644 --- a/python/pymei/exceptions.py +++ b/python/pymei/exceptions.py @@ -19,4 +19,9 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -from _libmei_exceptions import * \ No newline at end of file +from sys import version_info + +if version_info.major >= 3: + from ._libmei_exceptions import * +else: + from _libmei_exceptions import *