I made a GUI in Python and i just wanted to know how can i import a C file into python so every time a button is clicked on my GUI, different methods in the C program will be executed. I tried the 'Python' method of importing:
sys.path.insert(0, '/home/pi/Desktop/FTPclass.py')
import FTPclass
That worked for the python file i imported, but when I do the same for my c file, it complains saying my "testinc" module doesn't exist.
Thanks for everyone help in advance. ~Neamus