From f0e3de2a0146ba6a258a38c0864909c0ee1a5517 Mon Sep 17 00:00:00 2001 From: Omri Mendels Date: Sun, 9 Aug 2020 10:51:17 +0300 Subject: [PATCH] Analyzer sys path fix (#360) --- presidio-analyzer/presidio_analyzer/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/presidio-analyzer/presidio_analyzer/app.py b/presidio-analyzer/presidio_analyzer/app.py index d1d0f7d17..866adea92 100644 --- a/presidio-analyzer/presidio_analyzer/app.py +++ b/presidio-analyzer/presidio_analyzer/app.py @@ -12,11 +12,13 @@ from knack.help import CLIHelp from knack.help_files import helps +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + from analyzer_engine import AnalyzerEngine # noqa from recognizer_registry.recognizer_registry import RecognizerRegistry # noqa from nlp_engine import NLP_ENGINES # noqa from presidio_logger import PresidioLogger # noqa -from protobuf_models import analyze_pb2, analyze_pb2_grpc +from protobuf_models import analyze_pb2, analyze_pb2_grpc # noqa logger = PresidioLogger("presidio")