script.py 254 B

123456789
  1. from core import Neurone
  2. import subprocess
  3. class Script(Neurone):
  4. def __init__(self, script_path):
  5. Neurone.__init__(self)
  6. p = subprocess.Popen(script_path, stdout=subprocess.PIPE, shell=True)
  7. (output, err) = p.communicate()