Skip to content

Commit 29db6f0

Browse files
FFY00ZeroIntensity
andauthored
Update Modules/getpath.py
Co-authored-by: Peter Bierma <[email protected]>
1 parent 867cda8 commit 29db6f0

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 not build_prefix.startswith(dirname(abspath(library))):
792+
if build_prefix and library and not build_prefix.startswith(dirname(abspath(library))):
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)