Skip to content

Commit 5867a3c

Browse files
authored
++ (#11)
1 parent 9e7b1c1 commit 5867a3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mod.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Python3Module : public maiken::Module {
139139
std::string py_libname() const {
140140
return pyexec_for_string(
141141
"import sysconfig; lib=sysconfig.get_config_var('LDLIBRARY');"
142-
"print(lib[3:-3] if lib.startswith('lib') and lib.endswith('.so') else lib)");
142+
"print(lib[3:].split('.')[0] if lib.startswith('lib') else lib.split('.')[0])");
143143
}
144144
std::string py_prefix() const {
145145
return pyexec_for_string("import sysconfig; print(sysconfig.get_config_var('prefix'))");

0 commit comments

Comments
 (0)