from core import Neurone import subprocess class Command(Neurone): def __init__(self, command): Neurone.__init__(self) p = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True) (output, err) = p.communicate()