fix __init__.py for package
This commit is contained in:
parent
19de92834d
commit
784f7df603
|
@ -0,0 +1,19 @@
|
|||
"""Init for the baconscript package."""
|
||||
|
||||
from .bacon import (
|
||||
HogNet,
|
||||
beautify_lisp_string,
|
||||
OscCommentMacroListener,
|
||||
SyntaxErrorListener,
|
||||
load_config,
|
||||
comment,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"HogNet",
|
||||
"beautify_lisp_string",
|
||||
"OscCommentMacroListener",
|
||||
"SyntaxErrorListener",
|
||||
"load_config",
|
||||
"comment",
|
||||
]
|
|
@ -6,6 +6,10 @@ from time import sleep
|
|||
from .commentmacro.CommentMacroParser import CommentMacroParser
|
||||
from .commentmacro.CommentMacroListener import CommentMacroListener
|
||||
|
||||
__all__ = [
|
||||
"beautify_lisp_string",
|
||||
"OscCommentMacroListener",
|
||||
]
|
||||
|
||||
# https://raw.githubusercontent.com/jszheng/py3antlr4book/master/bin/pygrun
|
||||
# this is a python version of TestRig
|
||||
|
|
|
@ -1,2 +1,20 @@
|
|||
"""Main BaconScript module init."""
|
||||
__all__ = ["script", "hog4", "OscListener"]
|
||||
|
||||
from .hog4 import HogNet
|
||||
from .OscListener import beautify_lisp_string, OscCommentMacroListener
|
||||
from .script import SyntaxErrorListener, load_config, comment
|
||||
|
||||
__all__ = [
|
||||
"HogNet",
|
||||
]
|
||||
|
||||
__all__ += [
|
||||
"beautify_lisp_string",
|
||||
"OscCommentMacroListener",
|
||||
]
|
||||
|
||||
__all__ = [
|
||||
"SyntaxErrorListener",
|
||||
"load_config",
|
||||
"comment",
|
||||
]
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
"""Init for comment macro antlr4."""
|
||||
__all__ = ["CommentMacroLexer", "CommentMacroListener", "CommentMacroParser"]
|
||||
|
|
|
@ -6,6 +6,9 @@ from typing import Any, Dict, Union
|
|||
from pythonosc import udp_client, osc_message_builder, osc_bundle, osc_message
|
||||
from antlr4 import ParserRuleContext
|
||||
|
||||
__all__ = [
|
||||
"HogNet",
|
||||
]
|
||||
|
||||
class HogNet:
|
||||
"""Class definition of a hognet participant."""
|
||||
|
|
|
@ -12,6 +12,11 @@ from .commentmacro.CommentMacroLexer import CommentMacroLexer
|
|||
from .commentmacro.CommentMacroParser import CommentMacroParser
|
||||
from .OscListener import OscCommentMacroListener
|
||||
|
||||
__all__ = [
|
||||
"SyntaxErrorListener",
|
||||
"load_config",
|
||||
"comment",
|
||||
]
|
||||
|
||||
class SyntaxErrorListener(ErrorListener):
|
||||
"""An error listener that raises SyntaxError exceptions."""
|
||||
|
|
Loading…
Reference in New Issue