From a7d30a5aea7dc3d34283faf5a9206b006ee93885 Mon Sep 17 00:00:00 2001 From: Rob Court Date: Thu, 5 Sep 2024 09:31:32 +0100 Subject: [PATCH] vfb_launch behaviour enabled --- src/vfb_connect/__init__.py | 2 +- src/vfb_connect/cross_server_tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vfb_connect/__init__.py b/src/vfb_connect/__init__.py index 6a8780fd..1a6e80af 100644 --- a/src/vfb_connect/__init__.py +++ b/src/vfb_connect/__init__.py @@ -1,6 +1,6 @@ from .cross_server_tools import VfbConnect # Create an instance of VfbConnect and make it available directly -vfb = VfbConnect() +vfb = VfbConnect(vfb_launch=True) __all__ = ['vfb', 'VfbConnect'] \ No newline at end of file diff --git a/src/vfb_connect/cross_server_tools.py b/src/vfb_connect/cross_server_tools.py index 00b5fd65..0db66f47 100644 --- a/src/vfb_connect/cross_server_tools.py +++ b/src/vfb_connect/cross_server_tools.py @@ -122,7 +122,7 @@ def __init__(self, neo_endpoint=get_default_servers()['neo_endpoint'], print("\033[32mSession Established!\033[0m") print("") - print("\033[33mType \033[35mvfb. \033[33mand press \033[35mtab\033[33m to see available queries. You can run help against any query e.g. \033[35mhelp(vfb.terms)\033[0m") + print("\033[33mType \033[35mvfb. \033[33mand press \033[35mtab\033[33m to see available queries. You can run help against any query e.g. \033[35mhelp(vfb.terms)\033[0m") if vfb_launch else None def __dir__(self): return [attr for attr in list(self.__dict__.keys()) if not attr.startswith('_')] + [attr for attr in dir(self.__class__) if not attr.startswith('_') and not attr.startswith('add_')]