Skip to content

Commit bf40c17

Browse files
committed
Fix check
Signed-off-by: Filipe Laíns <[email protected]
1 parent 29db6f0 commit bf40c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/getpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def search_up(prefix, *landmarks, test=isfile):
789789

790790
# When running Python from the build directory, if libpython is dynamically
791791
# linked, the wrong library might be loaded.
792-
if build_prefix and library and not build_prefix.startswith(dirname(abspath(library))):
792+
if build_prefix and library and not dirname(abspath(library)).startswith(build_prefix):
793793
msg = f'The runtime library has been loaded from outside the build directory ({library})!'
794794
if os_name == 'posix':
795795
msg += ' Consider setting LD_LIBRARY_PATH=. to force it to be loaded from the build directory.'

0 commit comments

Comments
 (0)