mirror of
https://github.com/zoriya/AnonymousGoose.git
synced 2025-12-06 06:36:10 +00:00
15 lines
371 B
Python
15 lines
371 B
Python
import os
|
|
import subprocess
|
|
|
|
|
|
class CommandHelper:
|
|
@staticmethod
|
|
def run(cmd):
|
|
with open(os.devnull, 'wb') as devnull:
|
|
return subprocess.call(cmd.split(' '), stdout=devnull, stderr=subprocess.STDOUT)
|
|
|
|
@staticmethod
|
|
def run_async(cmd):
|
|
with open(os.devnull, 'wb') as devnull:
|
|
return subprocess.Popen(cmd.split(' '), stdout=devnull, stderr=subprocess.STDOUT)
|