Commit c85b545d authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

move VILLASode python code to VILLASnode repo

Former-commit-id: 3c988f9b
parent b7267ea5
import json
import tempfile
import subprocess
import logging
LOGGER = logging.getLogger('villas.node')
class Node(object):
def __init__(self, cfg):
self.config = cfg
def start(self):
self.config_file = tempfile.NamedTemporaryFile(mode='w+', suffix='.json')
json.dump(self.config, self.config_file)
self.config_file.flush()"Starting VILLASnode with config: %s",
self.child = subprocess.Popen(['villas-node',])
def stop(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment