[python-win32] Passing an object to a process
Max Slimmer
max at slimmersoft.com
Wed Mar 14 20:44:48 CET 2012
depends what you mean by share logger object, you might be able to
have logger on both apps share a common log file.
OTH if you want realtime events, I pass a socket from one app to
another and have implemented a proxy dialog so one app writes to the
progress dialog proxy and it in turn sends data to a handler on the
other system via the socket where the actual progress dialog shows
progress.
max
On Wed, Mar 14, 2012 at 11:53 AM, Tony Cappellini <cappy2112 at gmail.com> wrote:
>
> On Windows XP - I've got a program running which has spawned a process using
> os.spawnv().
>
> My program has a logger object instantiated that I want to pass to the
> process that was spawned.
> I need to log errors seen by the process, to the same logfile that the
> program uses for logging.
>
> I have the handle, thread ID, and process id of the process, but I see no
> way to share the logger object using these values.
>
> How can I pass a logger instance to the process, from the program which
> spawned the process?
>
> For legacy compatibility reasons, I'm stuck with an older version of Python
> that doesn't have the subprocess module and other features that are
> available with more modern releases of Python.
>
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
More information about the python-win32
mailing list