Skip to content

Commit 6d605fa

Browse files
authored
Only update working_set when loaded into live process (#129)
1 parent 55554bc commit 6d605fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

instana/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
Recorder
2626
"""
2727

28-
pkg_resources.working_set.add_entry("/tmp/instana/python")
28+
if "INSTANA_MAGIC" in os.environ:
29+
pkg_resources.working_set.add_entry("/tmp/instana/python")
2930

3031
__author__ = 'Instana Inc.'
3132
__copyright__ = 'Copyright 2018 Instana Inc.'

0 commit comments

Comments
 (0)