Ask questionsJSON files not found on import
This package seems broken. Steps to reproduce:
$ which python3 /usr/local/bin/python3 $ python3 -m venv ~/.venv/safteydb $ source ~/.venv/safteydb/bin/activate $ pip install safety-db $ python >>> from safety_db import INSECURE, INSECURE_FULL Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/cladam/.venv/safteydb/lib/python3.7/site-packages/safety_db/__init__.py", line 13, in <module> with open("data/insecure.json") as __f: FileNotFoundError: [Errno 2] No such file or directory: 'data/insecure.json'
Answer questions pawamoy
You're right! Would be nice if safety itself could detect it, or have an option to enable detection.
Related questionsNo questions were found.