remove python use os.popen

This commit is contained in:
qiurui 2024-04-07 19:49:57 +08:00
parent c3ce71dfca
commit 615e332007
1 changed files with 0 additions and 8 deletions

View File

@ -13,14 +13,6 @@ def sub_command_run(cmd,grep):
out = value.communicate()[0].decode('utf-8')
return out
'''
def os_command_run(cmd):
password="orangepi"
command = os.popen('echo %s|sudo -S %s' % (password, cmd))
result = command.read()
return result
'''
def is_mounted(part):
result = subprocess.run('mount',capture_output=True,text=True)
output = result.stdout