This is the third (and the last) example for the gitmodules project. However it is just a part of a complex construction with root at gitmodules_example_a.
This project has no any dependencies and its only submodule is an ordinary submodule. gitmodules_example_c should be imported as a gitmodule like in the gitmodules_example_b project.
gitmodules_example_c can be executed as a main script but if you will try to import it in any other project as a git submodule you will be forced to append its path to the sys.path:
import sys
sys.path.append("gitmodules_example_c")
from gitmodules_example_c import c
Or you can simply use gitmodules instead:
import gitmodules
from gitmodules_example_c import c