mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 10:54:16 +02:00
0.9.17
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
from io import StringIO
|
||||
from typing import Tuple, Optional
|
||||
|
||||
from bauh.commons.system import run_cmd, SimpleProcess
|
||||
from bauh.commons.system import SimpleProcess
|
||||
|
||||
BASE_CMD = 'snap'
|
||||
|
||||
|
||||
def is_installed() -> bool:
|
||||
return bool(run_cmd('which {}'.format(BASE_CMD), print_error=False))
|
||||
return bool(shutil.which(BASE_CMD))
|
||||
|
||||
|
||||
def uninstall_and_stream(app_name: str, root_password: str) -> SimpleProcess:
|
||||
|
||||
Reference in New Issue
Block a user