I have a problem. I created a script that uses a few functions, but now I have moved those functions in a folder named: include
. The file is called: mylib.py
, but when I use the following code:
import sys
sys.path.insert(0, 'include/')
import mylib
It gives an error: No module named 'mylib'
. The main code is in the windows directory: Desktop/Python/
and the include file in: Desktop/Python/include/
.
What am I doing wrong?