remove filemanager.py

This commit is contained in:
Usman Nasir
2020-04-06 19:08:41 +05:00
parent c2a54f0990
commit 0af72a903c
4 changed files with 24 additions and 53 deletions

View File

@@ -263,12 +263,17 @@ class ProcessUtilities(multi.Thread):
def customPoen(self):
try:
if type(self.extraArgs['command']) == str or type(self.extraArgs['command']) == bytes:
command = self.extraArgs['command']
else:
command = " ".join(self.extraArgs['command'])
ProcessUtilities.sendCommand(command, self.extraArgs['user'])
if getpass.getuser() == 'root':
subprocess.call(command, shell=True)
else:
ProcessUtilities.sendCommand(command, self.extraArgs['user'])
return 1
except BaseException as msg: