remove python use os.popen
This commit is contained in:
parent
c3ce71dfca
commit
615e332007
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue