svghmi/__init__.py
author Edouard Tisserant
Wed, 18 Dec 2019 13:31:22 +0100
branchsvghmi
changeset 2821 d92d201d22e1
parent 2745 535eb0b8bd9d
child 3750 f62625418bff
permissions -rw-r--r--
Add --on-plc-start --on-plc-stop and --status-change to runtime command line, calling given command respectively on start stop or any event. Command line string is python formated (to eventually include status with {}) before being split (supports quoted strings) and passed to Popen for non-blocking execution.
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# This file is part of Beremiz
# Copyright (C) 2019: Edouard TISSERANT
#
# See COPYING file for copyrights details.

from __future__ import absolute_import
from svghmi.svghmi import *