First of all I must say what versions I'm using:
Ipython1 from chainsaw brach revision 2146
local Client (that instanciate the remote controller) is windows based
remote server:
1 PC under windows2000
1PC under linux rh3.3
From the server side:
Local import under linux works but under windows it doesn't works.
I've attached 2 scripts:
client.py that is on my local computer (that is windows based in this
example)
client.py open server.py and send it through the network via pushAll
method (as a string).
then it says to the remote servers to write the received file and tell
them to import it.
If remote server is linux based: it works.
If remote server is windows2000 based: it fails.
1 : import ipython1.kernel.api as kernel
2 : rc = kernel.RemoteController?(('127.0.0.1',10105))
...
...
3 : rc.executeAll('import myscript')
fails because myscript.py can't be found BUT myscript.py is present in the working directory
workaround :
4 : rc.executeAll('import os,sys')
5 : rc.executeAll('sys.path.append(os.path.abspath(os.path.curdir))')
6 : rc.executeAll('import myscript')
now works!