blob: d2b5ffa0a1e1e62eaec774e77b5a80a17528bcb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- a/ebtables.py 2016-08-14 23:38:16.000000000 +0000
+++ b/ebtables.py 2021-12-13 13:44:55.332479081 +0000
@@ -6,7 +6,7 @@
__version__ = '0.2.0'
-EBTABLES_LIBRARY_PATH = os.getenv('EBTABLES_LIBRARY_PATH') or '/lib/ebtables'
+EBTABLES_LIBRARY_PATH = os.getenv('EBTABLES_LIBRARY_PATH') or '/usr/lib'
class EbtablesException(Exception):
@@ -24,7 +24,7 @@
def _get_libraries():
files = os.listdir(EBTABLES_LIBRARY_PATH)
- return [_get_libname(f) for f in files if f.endswith('.so')]
+ return [_get_libname(f) for f in files if f.startswith("libebt") and f.endswith('.so')]
ffi = FFI()
|