Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- subprocess.call("firefox")
- import threading
- import subprocess
- class RunCommandThread(threading.Thread):
- """
- Класс для запуска команды в отдельном потоке
- """
- def __init__(self, command):
- self.command = command
- threading.Thread.__init__(self)
- def run(self):
- subprocess.call(self.command)
- RunCommandThread("firefox").start()
Add Comment
Please, Sign In to add comment