SystemError: Parent module '' not loaded, cannot perform relative import

SystemError: Parent module '' not loaded, cannot perform relative import

Python 3.5.x
Python 2 -> Python 3.5 に更新しているときに出たエラー
python
Copied!
(python 2)
from MyModule import *

(Python 3)
import sys
sys.path.append('.')
from path.to.MyModule import *

Powered by Helpfeel