Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5220 > unrolled thread

Re: NewBie Doubt in Python Thread Programming

Started byChris Angelico <rosuav@gmail.com>
First post2011-05-12 18:08 +1000
Last post2011-05-12 18:08 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: NewBie Doubt in Python Thread Programming Chris Angelico <rosuav@gmail.com> - 2011-05-12 18:08 +1000

#5220 — Re: NewBie Doubt in Python Thread Programming

FromChris Angelico <rosuav@gmail.com>
Date2011-05-12 18:08 +1000
SubjectRe: NewBie Doubt in Python Thread Programming
Message-ID<mailman.1453.1305187694.9059.python-list@python.org>
On Thu, May 12, 2011 at 3:35 PM, vijay swaminathan <swavijay@gmail.com> wrote:
> I tried using QThread as well.. But the problem is, on the run method when i
> invoke the command prompt, it sends out the finished signal...  I want it to
> send out the finished signal only on closing the command prompt that is
> invoked earlier in my process.

>         subprocess.call(["start", "/DC:\\PerfLocal_PAL",
> "scripts_to_execute.bat"], shell=True)

This is your problem, still. You need to change to a call that waits.
In my testing on Windows (Python 2.6.5), this can be done with
os.system() quite happily. Change that, and it should all work.

Chris Angelico

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web