I will separate the code into individual modules. I did not know about this.
manually adding paths to the Python Module Search Paths is never needed, and will certainly not help to run C++ code directly in Rhino, since this is simply not possible.
when you create an RPC proxy, it will automatically try to reconnect to an existing server. if none is found, it will start a new one.
manually stopping and starting the server (i.e. proxy.restart_server() ) is only needed if you want to reload the code that is running on the server, for example after making changes…
Thank you for the explanation, now it is much clearer.
I will wait for further instructions in this thread, since I am struggling in the recent days to find a right solution: