Subprocess .wait() is not waiting
adam.c.bernier at kp.org
Fri Mar 24 17:28:53 EDT 2017
On Friday, March 24, 2017 at 2:27:09 PM UTC-7, eryk sun wrote:
> On Fri, Mar 24, 2017 at 8:44 PM, adam.c.bernier <adam.c.bernier at kp.org> wrote:
> > On Friday, March 24, 2017 at 1:37:49 PM UTC-7, eryk sun wrote:
> >> Without knowing the command you're running, all we can do is
> >> speculate. It could be that it's an application that uses a single
> >> instance, in which case running another instance simply messages the
> >> main process and then exits.
> > Thank you, eryk sun. The command is calling a Python script which makes calls to
> > openpyxl to generate 14 Excel files.
> openpyxl should do all of the work in the process that Popen is
> waiting on. Is the command-line in `args` something like
> "C:\Python27\python.exe path\to\script.py"?
That's exactly right.
More information about the Python-list