Python Forum

Full Version: Capture Pyro Object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have a script which on running creates a Pyro object. I need to capture the Pyro object created such that the process still keeps running.
Let's say there is a file abc.py. When I run this file in terminal, a Pyro object is created and the output is as follows:
Output:
PYRO:obj_ec5ef692656a4e94954764c86232743d@171.12.410.146:32819
And then I copy this pyro object manually where it is needed and keep this terminal as it is and continue other processes in new terminals. But I need to automate this such that when I run a Python script a Pyro object is created and is captured in a variable such that it can be used afterwards.

Has anyone come across this situation or knows how to do this?
Any help is appreciated.

Thanks in advance!!
Maybe saving that Pyro object into a file?