mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
416 B
12 lines
416 B
# from https://stackoverflow.com/questions/563022/whats-python-good-practice-for-importing-and-offering-optional-features
|
|
import sys
|
|
|
|
try:
|
|
import fastText
|
|
except ImportError:
|
|
fastText = None
|
|
|
|
if fastText is None:
|
|
print("In order to use slither-simil, you need to install fastText 0.2.0:")
|
|
print("$ pip3 install https://github.com/facebookresearch/fastText/archive/0.2.0.zip --user")
|
|
sys.exit(-1)
|
|
|