From b82735be5477082cc71ad1ff022b5f8e45a3c948 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 8 Aug 2024 14:32:05 -0500 Subject: [PATCH] try again fix syntax --- SConstruct | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index aa527164..2dd08970 100644 --- a/SConstruct +++ b/SConstruct @@ -518,9 +518,11 @@ elif platform == "posix": "BoE Character Editor", "BoE Scenario Editor", ] - atexit.register(lambda: - for targ in (targets + [so for so in os.listdir("build/Blades of Exile") if '.so' in so]): - subprocess.call(['patchelf', '--set-rpath', '.', targ], cwd='build/Blades of Exile')) + def patchelf(): + to_patch = targets + [so for so in os.listdir("build/Blades of Exile") if '.so' in so] + for targ in to_patch: + subprocess.call(['patchelf', '--set-rpath', '.', targ], cwd='build/Blades of Exile') + atexit.register(patchelf) bundled_libs += Split(""" GL X11