From 75bd6ea992e83906ef0863133c97cda418f8242d Mon Sep 17 00:00:00 2001 From: Peter Giacomo Lombardo Date: Tue, 28 Apr 2020 15:05:53 +0200 Subject: [PATCH] Add pkg_resources safety --- instana/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instana/__init__.py b/instana/__init__.py index 6df9bbaf..c9de43f1 100644 --- a/instana/__init__.py +++ b/instana/__init__.py @@ -141,6 +141,8 @@ def boot_agent(): if "INSTANA_MAGIC" in os.environ: pkg_resources.working_set.add_entry("/tmp/.instana/python") + # The following path is deprecated: To be removed at a future date + pkg_resources.working_set.add_entry("/tmp/instana/python") if "INSTANA_DEBUG" in os.environ: print("Instana: activated via AutoTrace")