Commit ee222536 authored by Stefan Behnel's avatar Stefan Behnel

looking up package path at import time requires Py3.3+

parent 8903db53
...@@ -150,7 +150,7 @@ bad: ...@@ -150,7 +150,7 @@ bad:
/////////////// SetPackagePathFromImportLib.proto /////////////// /////////////// SetPackagePathFromImportLib.proto ///////////////
#if PY_MAJOR_VERSION >= 3 #if PY_VERSION_HEX >= 0x03030000
static int __Pyx_SetPackagePathFromImportLib(const char* parent_package_name, PyObject *module_name); static int __Pyx_SetPackagePathFromImportLib(const char* parent_package_name, PyObject *module_name);
#else #else
#define __Pyx_SetPackagePathFromImportLib(a, b) 0 #define __Pyx_SetPackagePathFromImportLib(a, b) 0
...@@ -160,7 +160,7 @@ static int __Pyx_SetPackagePathFromImportLib(const char* parent_package_name, Py ...@@ -160,7 +160,7 @@ static int __Pyx_SetPackagePathFromImportLib(const char* parent_package_name, Py
//@requires: ObjectHandling.c::PyObjectGetAttrStr //@requires: ObjectHandling.c::PyObjectGetAttrStr
//@substitute: naming //@substitute: naming
#if PY_MAJOR_VERSION >= 3 #if PY_VERSION_HEX >= 0x03030000
static int __Pyx_SetPackagePathFromImportLib(const char* parent_package_name, PyObject *module_name) { static int __Pyx_SetPackagePathFromImportLib(const char* parent_package_name, PyObject *module_name) {
PyObject *importlib, *loader, *osmod, *ossep, *parts, *package_path; PyObject *importlib, *loader, *osmod, *ossep, *parts, *package_path;
PyObject *path = NULL, *file_path = NULL; PyObject *path = NULL, *file_path = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment