From 1b23d7d8724c869bee6186b4a5c348b9a81563b1 Mon Sep 17 00:00:00 2001 From: Peter Giacomo Lombardo Date: Fri, 8 Feb 2019 17:12:52 +0100 Subject: [PATCH] Only update working_set when loaded into live process --- instana/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instana/__init__.py b/instana/__init__.py index 2dd0411d..9aa9ff8a 100644 --- a/instana/__init__.py +++ b/instana/__init__.py @@ -25,7 +25,8 @@ Recorder """ -pkg_resources.working_set.add_entry("/tmp/instana/python") +if "INSTANA_MAGIC" in os.environ: + pkg_resources.working_set.add_entry("/tmp/instana/python") __author__ = 'Instana Inc.' __copyright__ = 'Copyright 2018 Instana Inc.'