Commits

Smith Dhumbumroong committed d373e1b

Switch to use os.system method to execute command.

Comments (0)

Files changed (1)

 
 import os
 import ConfigParser
-import subprocess
 import time
 
 import psutil
 
     def logout(self, widget):
         if not self.rc_shutdown == 'None':
-            subprocess.call(self.rc_shutdown)
+            os.system(self.rc_shutdown)
         self.CloseProcesses(self.plist)
 
         pman = ProcessManager()
 
     def restart(self, widget):
         if not self.rc_shutdown == 'None':
-            subprocess.call(self.rc_shutdown)
+            os.system(self.rc_shutdown)
         self.CloseProcesses(self.plist)
 
         self.pwm.Restart()
 
     def shutdown(self, widget):
         if not self.rc_shutdown == 'None':
-            subprocess.call(self.rc_shutdown)
+            os.system(self.rc_shutdown)
         self.CloseProcesses(self.plist)
 
         self.pwm.Stop()