mirror of
https://github.com/emqx/neuron.git
synced 2026-10-21 16:55:53 +08:00
15 lines
252 B
Python
15 lines
252 B
Python
import subprocess
|
|
|
|
|
|
class NeuronLib(object):
|
|
process = 0
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
def Start_Neuron(self):
|
|
self.process = subprocess.Popen(['./neuron'], cwd='build/')
|
|
|
|
def Stop_Neuron(self):
|
|
self.process.kill()
|