ModuleNotFoundError : When importing from directory

You can create a new package directory

from foldername.filename import func

make sure to include an empty _init_.py file in the directory. This file tells Python to treat the directory as a package