Commit 129505da authored by Federico Sismondi's avatar Federico Sismondi

allow execution as __main__ or imported lib

parent 0ee50062
......@@ -5,12 +5,17 @@ import base64
import logging
import threading
import traceback
from tabulate import tabulate
from messages import *
import click
from click_repl import register_repl, ExitReplException
# for using it as library and as a __main__
try:
from messages import *
from tabulate import tabulate
except:
from .messages import *
from .tabulate import tabulate
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.WARNING)
COMPONENT_ID = 'cli'
......
Markdown is supported
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