4 localContext
= uno
.getComponentContext()
5 resolver
= localContext
.ServiceManager
.createInstanceWithContext(
6 "com.sun.star.bridge.UnoUrlResolver", localContext
)
7 remoteContext
= resolver
.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )
8 remoteSmgr
= remoteContext
.ServiceManager
10 pyComp
= remoteSmgr
.createInstanceWithContext( "org.openoffice.demo.SWriter" , remoteContext
)