Move fsm stuff to a separate directory in lib

This commit is contained in:
Kristóf Tóth 2018-07-24 11:40:33 +02:00
parent 52b2adb9c4
commit 8c6a14cef5
5 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,4 @@
# All Rights Reserved. See LICENSE file for details. # All Rights Reserved. See LICENSE file for details.
from .event_handler_base import EventHandlerBase, FSMAwareEventHandler, BroadcastingEventHandler from .event_handler_base import EventHandlerBase, FSMAwareEventHandler, BroadcastingEventHandler
from .fsm_base import FSMBase from .fsm import FSMBase, LinearFSM, YamlFSM
from .linear_fsm import LinearFSM
from .yaml_fsm import YamlFSM

6
lib/tfw/fsm/__init__.py Normal file
View File

@ -0,0 +1,6 @@
# Copyright (C) 2018 Avatao.com Innovative Learning Kft.
# All Rights Reserved. See LICENSE file for details.
from .fsm_base import FSMBase
from .linear_fsm import LinearFSM
from .yaml_fsm import YamlFSM

View File

@ -9,7 +9,7 @@ import yaml
import jinja2 import jinja2
from transitions import State from transitions import State
from tfw import FSMBase from .fsm_base import FSMBase
class YamlFSM(FSMBase): class YamlFSM(FSMBase):