Link to home
Start Free TrialLog in
Avatar of RayanCoheen
RayanCoheen

asked on

problem when using os.startfile inside python thread

I'm using os.startfile inside a thread, sometime it works fine, and other-times its stops the process.
What is the solution for this problem ? and what dependencies make it work.?
Avatar of pepr
pepr

You should be more specific, show or better describe the code you use, and possibly write down some expectations, how it fails, when it fails. When working with threads, the reason can also be different than the os.startfile().
Avatar of RayanCoheen

ASKER

OK Pepr,
I couldn't add any part of my code here sir. I can describe the issue more specifically, I'm creating update function to  my application that need to launch some exe files that update the services  of my application  so  I do  use
os.startfile() 

Open in new window

to launch the  exe file but the application some times failed to start launching other application and  my process not responding after this  line executed and couldn't execute any line after this line.

I feel this strange, I don't understand  why  this line  can  launch  other applications  and  failed others. that is the issue .
I hope  that I described the issue more specific.

regards,
Rayan
ASKER CERTIFIED SOLUTION
Avatar of pepr
pepr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial