diff --git a/milvus_cli/scripts/alias_cli.py b/milvus_cli/scripts/alias_cli.py index 3b0f22e..a3d76b2 100644 --- a/milvus_cli/scripts/alias_cli.py +++ b/milvus_cli/scripts/alias_cli.py @@ -1,4 +1,4 @@ -from helper_cli import create, getList, delete +from .helper_cli import create, getList, delete import click diff --git a/milvus_cli/scripts/collection_cli.py b/milvus_cli/scripts/collection_cli.py index e84d50a..8147de2 100644 --- a/milvus_cli/scripts/collection_cli.py +++ b/milvus_cli/scripts/collection_cli.py @@ -1,5 +1,5 @@ from tabulate import tabulate -from helper_cli import create, getList, delete, rename, show, load, release +from .helper_cli import create, getList, delete, rename, show, load, release import click import os import sys diff --git a/milvus_cli/scripts/connection_cli.py b/milvus_cli/scripts/connection_cli.py index fb7bb6d..288c5ff 100644 --- a/milvus_cli/scripts/connection_cli.py +++ b/milvus_cli/scripts/connection_cli.py @@ -1,6 +1,6 @@ from tabulate import tabulate -from helper_cli import show, getList -from init_cli import cli +from .helper_cli import show, getList +from .init_cli import cli import click diff --git a/milvus_cli/scripts/data_cli.py b/milvus_cli/scripts/data_cli.py index 9439f5c..2ebe560 100644 --- a/milvus_cli/scripts/data_cli.py +++ b/milvus_cli/scripts/data_cli.py @@ -1,5 +1,5 @@ -from helper_cli import delete, insert -from init_cli import cli +from .helper_cli import delete, insert +from .init_cli import cli import click import os diff --git a/milvus_cli/scripts/database_cli.py b/milvus_cli/scripts/database_cli.py index f7e3e17..31672be 100644 --- a/milvus_cli/scripts/database_cli.py +++ b/milvus_cli/scripts/database_cli.py @@ -1,6 +1,5 @@ from tabulate import tabulate -from helper_cli import create, getList, delete, use -from init_cli import cli +from .helper_cli import create, getList, delete, use import click diff --git a/milvus_cli/scripts/helper_cli.py b/milvus_cli/scripts/helper_cli.py index ca75ec6..aa701e7 100644 --- a/milvus_cli/scripts/helper_cli.py +++ b/milvus_cli/scripts/helper_cli.py @@ -1,6 +1,4 @@ -from init_cli import cli -from Types import ConnectException, ParameterException -from utils import WELCOME_MSG, EXIT_MSG, Completer, getPackageVersion +from .init_cli import cli import sys import os import click @@ -9,6 +7,9 @@ parent_dir = os.path.dirname(current_dir) sys.path.append(parent_dir) +from utils import WELCOME_MSG, EXIT_MSG, Completer, getPackageVersion +from Types import ConnectException, ParameterException + def print_help_msg(command): with click.Context(command) as ctx: diff --git a/milvus_cli/scripts/index_cli.py b/milvus_cli/scripts/index_cli.py index 038d057..3d36623 100644 --- a/milvus_cli/scripts/index_cli.py +++ b/milvus_cli/scripts/index_cli.py @@ -1,6 +1,6 @@ from tabulate import tabulate -from helper_cli import create, getList, delete, show -from init_cli import cli +from .helper_cli import create, getList, delete, show +from .init_cli import cli import click import os import sys diff --git a/milvus_cli/scripts/milvus_cli.py b/milvus_cli/scripts/milvus_cli.py index cf00ba8..9e995ad 100644 --- a/milvus_cli/scripts/milvus_cli.py +++ b/milvus_cli/scripts/milvus_cli.py @@ -1,13 +1,12 @@ -from init_cli import cli -from connection_cli import * -from helper_cli import * -from database_cli import * -from collection_cli import * -from index_cli import * -from data_cli import * -from user_cli import * -from alias_cli import * -from partition_cli import * +from .connection_cli import * +from .helper_cli import * +from .database_cli import * +from .collection_cli import * +from .index_cli import * +from .data_cli import * +from .user_cli import * +from .alias_cli import * +from .partition_cli import * if __name__ == "__main__": diff --git a/milvus_cli/scripts/partition_cli.py b/milvus_cli/scripts/partition_cli.py index 26abafb..988b729 100644 --- a/milvus_cli/scripts/partition_cli.py +++ b/milvus_cli/scripts/partition_cli.py @@ -1,4 +1,4 @@ -from helper_cli import create, getList, delete, show, load, release +from .helper_cli import create, getList, delete, show, load, release import click diff --git a/milvus_cli/scripts/user_cli.py b/milvus_cli/scripts/user_cli.py index e6b3975..32c5bb5 100644 --- a/milvus_cli/scripts/user_cli.py +++ b/milvus_cli/scripts/user_cli.py @@ -1,4 +1,4 @@ -from helper_cli import create, getList, delete +from .helper_cli import create, getList, delete import click