Skip to content

Commit 979cb8b

Browse files
authored
Add pkg_resources safety (#229)
1 parent 7f7ce63 commit 979cb8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

instana/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def boot_agent():
141141

142142
if "INSTANA_MAGIC" in os.environ:
143143
pkg_resources.working_set.add_entry("/tmp/.instana/python")
144+
# The following path is deprecated: To be removed at a future date
145+
pkg_resources.working_set.add_entry("/tmp/instana/python")
144146

145147
if "INSTANA_DEBUG" in os.environ:
146148
print("Instana: activated via AutoTrace")

0 commit comments

Comments
 (0)