Skip to content

Commit 7c95ec3

Browse files
committed
#4 Reorder dynamic loading flag setting in update_dynalib_path function for unix only
1 parent 0dd5e37 commit 7c95ec3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

iris_embedded_python/iris_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33

44

55
def update_dynalib_path(dynalib_path):
6-
# set flags to allow dynamic loading of shared libraries
7-
sys.setdlopenflags(sys.getdlopenflags() | os.RTLD_GLOBAL)
8-
96
# Determine the environment variable based on the operating system
107
env_var = 'PATH'
118
if not sys.platform.startswith('win'):
9+
# set flags to allow dynamic loading of shared libraries
10+
sys.setdlopenflags(sys.getdlopenflags() | os.RTLD_GLOBAL)
1211
if sys.platform == 'darwin':
1312
env_var = 'DYLD_LIBRARY_PATH'
1413
else:

0 commit comments

Comments
 (0)