diff --git a/twander.py b/twander.py index 9852926..2169822 100755 --- a/twander.py +++ b/twander.py @@ -4,7 +4,7 @@ PROGNAME = "twander" -RCSID = "$Id: twander.py,v 1.88 2002/12/01 22:16:10 tundra Exp $" +RCSID = "$Id: twander.py,v 1.89 2002/12/04 22:48:03 tundra Exp $" VERSION = RCSID.split()[2] @@ -18,6 +18,7 @@ from socket import getfqdn from stat import * import sys +import thread import time from Tkinter import * @@ -685,7 +686,7 @@ cmd = cmd.replace(DIRNAME, UI.CurrentDir) # Actually execute the command - os.system(cmd) + thread.start_new_thread(os.system, (cmd,)) # end of 'KeystrokeHandler()' @@ -708,7 +709,7 @@ cmd = askstring(pRUNCMD, pENCMD) if cmd: - os.system(cmd) + thread.start_new_thread(os.system, (cmd,)) UI.DirList.focus() # End of 'ChangeDir()' @@ -944,7 +945,7 @@ os.startfile(os.path.join(os.path.abspath(UI.CurrentDir), selected)) elif OSNAME == 'posix': - os.system(os.path.join(os.path.abspath(UI.CurrentDir), selected) + "&") + thread.start_new_thread(os.system, (os.path.join(os.path.abspath(UI.CurrentDir), selected),)) # Have to update the window title because selection changed