mods
├── mymodule.py
└── __init__.py
>>> import mymod
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'mymodule'
>>> import sys
>>> for p in sys.path:
... print(p)
...
/Users/Thomas/temp/Kivy3.app/Contents/Resources/kivy
/Users/Thomas/temp/Kivy3.app/Contents/Resources
/Users/Thomas/temp/Kivy3.app/Contents/Frameworks/python/3.5.0/lib/python35.zip
/Users/Thomas/temp/Kivy3.app/Contents/Frameworks/python/3.5.0/lib/python3.5
/Users/Thomas/temp/Kivy3.app/Contents/Frameworks/python/3.5.0/lib/python3.5/plat-darwin
/Users/Thomas/temp/Kivy3.app/Contents/Frameworks/python/3.5.0/lib/python3.5/lib-dynload
/Users/Thomas/temp/Kivy3.app/Contents/Frameworks/python/3.5.0/lib/python3.5/site-packages
/Users/Thomas/temp/Kivy3.app/Contents/Resources/kivy/kivy/modules
/Users/Thomas/temp/Kivy3.app/Contents/Resources/.kivy/mods
>>> quit()
However, in my working copy, I get this:
>>> import sys
>>> for p in sys.path:
... print(p)
...
/Applications/Quantum.app/Contents/Frameworks/python/3.5.0/lib/python3.5/site-packages/mogwai-0.7.7-py3.5.egg
/Applications/Quantum.app/Contents/Resources/kivy
/Applications/Quantum.app/Contents/Resources
/Applications/Quantum.app/Contents/Frameworks/python/3.5.0/lib/python35.zip
/Applications/Quantum.app/Contents/Frameworks/python/3.5.0/lib/python3.5
/Applications/Quantum.app/Contents/Frameworks/python/3.5.0/lib/python3.5/plat-darwin
/Applications/Quantum.app/Contents/Frameworks/python/3.5.0/lib/python3.5/lib-dynload
/Applications/Quantum.app/Contents/Frameworks/python/3.5.0/lib/python3.5/site-packages
>>>
I did not modify my script file so I'm unsure how this would happen. Does anyone know how the sys.path gets assigned when you import kivy? I would rather fix this where it broke rather than modifying the script file to force it in.