diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-11-12 02:51:03 +0100 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-11-12 02:51:03 +0100 |
| commit | 128f38dc84bc0fc2f2f50c255e8a431edf3930cc (patch) | |
| tree | d36bf3f3a0d7a246bd64fedaaba2cb489065d822 /psutil/_psutil_bsd.c | |
| parent | ca73eebc911ebfb3db0f1bcc9305d3270524519d (diff) | |
| download | psutil-128f38dc84bc0fc2f2f50c255e8a431edf3930cc.tar.gz | |
define a setup() function which is called on import by all C modules
Diffstat (limited to 'psutil/_psutil_bsd.c')
| -rw-r--r-- | psutil/_psutil_bsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/psutil/_psutil_bsd.c b/psutil/_psutil_bsd.c index edb790a9..f1adb1d3 100644 --- a/psutil/_psutil_bsd.c +++ b/psutil/_psutil_bsd.c @@ -1088,6 +1088,8 @@ void init_psutil_bsd(void) // PSUTIL_CONN_NONE PyModule_AddIntConstant(module, "PSUTIL_CONN_NONE", 128); + psutil_setup(); + if (module == NULL) INITERROR; #if PY_MAJOR_VERSION >= 3 |
