Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
smol
Commits
09acda91
Commit
09acda91
authored
Jul 05, 2020
by
PoroCYon
Committed by
PoroCYon
Jul 11, 2020
Browse files
fix smoldd.py failing when LD_LIBRARY_PATH isn't defined in the environment
parent
5a42351a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/smoldd.py
View file @
09acda91
...
...
@@ -27,7 +27,7 @@ def get_def_libpaths(cc_bin, is32bit):
return
get_cc_paths
(
cc_bin
)[
'libraries'
]
def
find_libs
(
deflibs
,
libname
):
dirs
=
os
.
environ
[
'LD_LIBRARY_PATH'
]
.
split
(
':'
)
+
deflibs
dirs
=
os
.
environ
.
get
(
'LD_LIBRARY_PATH'
,
''
)
.
split
(
':'
)
+
deflibs
for
d
in
dirs
:
for
f
in
glob
.
glob
(
glob
.
escape
(
d
+
'/'
+
libname
)
+
'*'
):
yield
f
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment