Skip to content

Commit

Permalink
fix: Automatic installation when the dependent package does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Sep 14, 2022
1 parent 8268392 commit 96aa964
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion milvus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
import pathlib
import shutil
import os
from importlib_resources import files
from distutils.dir_util import copy_tree
try:
from importlib_resources import files
except ModuleNotFoundError:
os.system("pip install importlib_resources")
from importlib_resources import files

CONFIG_PATH = '/var/bin/e-milvus/configs/'
LIB_PATH = '/var/bin/e-milvus/lib/'
Expand Down

0 comments on commit 96aa964

Please sign in to comment.