aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/runtime_py3/runtime_reg_py3.cpp
blob: 283fa70254decee04fa5caf250272780615e024a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <Python.h>

extern "C" PyObject* PyInit___res();
extern "C" PyObject* PyInit_sitecustomize();

namespace {
    struct TRegistrar {
        inline TRegistrar() {
            _inittab mods[] = {
                {"__res", PyInit___res},
                {"sitecustomize", PyInit_sitecustomize},
                {nullptr, nullptr}
            };
            PyImport_ExtendInittab(mods);
        }
    } REG;
}