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


Groups > comp.lang.python > #5220

Re: NewBie Doubt in Python Thread Programming

References (5 earlier) <BANLkTimPEB8GCAOHQY4-V53eTHr6Rzt87Q@mail.gmail.com> <BANLkTim4kHycVmtQvDYy4rXz9KApguak=g@mail.gmail.com> <BANLkTiksGud8_Z=+_fu8ij4T+6gizcGt+w@mail.gmail.com> <BANLkTinS=EDuRMU6ZA8N4f2ypgiztf7yMg@mail.gmail.com> <BANLkTinBTiQhccb+JrKtCLmCZZs7OeTKJw@mail.gmail.com>
Date 2011-05-12 18:08 +1000
Subject Re: NewBie Doubt in Python Thread Programming
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1453.1305187694.9059.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web