bpy.ops.logic.controller_add(type=‘PYTHON’, name=“myController”, object=“Empty”)
This line of code adds a Python script controller to an Object named “Empty”
The documentation for the function can be found here:
I need to know how to access the python controller. More specifically, i need to access it without using the bge modules as those are used when the game is beeing played.