You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
489 B

"""EasyEngine shell executaion functions."""
import os
import sys
import subprocess
from subprocess import Popen
class EEShellExec():
"""Method to run shell commands"""
def __init__():
pass
def cmd_exec(command):
try:
retcode = subprocess.getstatusoutput(command)
if retcode[0] == 0:
return True
else:
return False
except OSError as e:
print(e)
return False