Your code has a couple of issues, if i am not wrong it will not actually start using threading with your code as it is. You need to add a couple of lines
class Thread ( threading . Thread ):
def __init__(self):
threading.Thread.__init__(self)
def run ( Self ):
subprocess . call ( "mycommand.exe" )
See how i have called the __init__ method on the threading.Thread class? This means that now it will run the __init__ method of the Thread class, which is needed for threading to work properly with classes.
So try replacing you current class with that and try again and see how it all goes
Hope that helps
Reputation Points: 264
Solved Threads: 183
Veteran Poster
Offline 1,095 posts
since May 2008