• Guido van Rossum's avatar
    Fix importing of shared libraries from inside packages. · 2e58ff3e
    Guido van Rossum yazdı
    This is a bit of a hack: when the shared library is loaded, the module
    name is "package.module", but the module calls Py_InitModule*() with just
    "module" for the name.  The shared library loader squirrels away the true
    name of the module in _Py_PackageContext, and Py_InitModule*() will
    substitute this (if the name actually matches).
    2e58ff3e
importdl.c 18.7 KB