Skip to content

Commit

Permalink
avoid DYLD_INSERT_LIBRARIES to propagate
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Sep 21, 2024
1 parent e33953a commit b6a7293
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions radian/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ def main(cleanup=None):
if not sys.platform.startswith("win"):
libPath = os.path.join(r_home, "lib")
ldpaths = os.path.join(r_home, "etc", "ldpaths")

if "DYLD_INSERT_LIBRARIES" in os.environ:
del os.environ['DYLD_INSERT_LIBRARIES']

if (
"R_LD_LIBRARY_PATH" not in os.environ
or libPath not in os.environ["R_LD_LIBRARY_PATH"]
Expand Down

0 comments on commit b6a7293

Please sign in to comment.