From ac6cdec2d0812444e8def9ef6ce8930dff660f39 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Fri, 7 Feb 2020 16:24:20 -0800 Subject: [PATCH] Fixes Issue #202 - __path__ was being set to a string - It's supposed to be a list of strings or None For pycapnp pydoc isn't super useful at the module level as pydoc will scan all the files in the directory and just list them. Here's thread_capnp for example, notice how it doesn't show any information on the .capnp files. Help on package thread_capnp: NAME thread_capnp PACKAGE CONTENTS addressbook async_calculator_client async_calculator_server async_client async_reconnecting_ssl_client async_server async_ssl_client async_ssl_server calculator_client calculator_server thread_client thread_server DATA Example = schema = --- capnp/lib/capnp.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index a3ec1dd..5cbae46 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -3239,7 +3239,7 @@ cdef class SchemaParser: _load(fileSchema, module) abs_path = _os.path.abspath(file_name) - module.__path__ = _os.path.dirname(abs_path) + module.__path__ = [_os.path.dirname(abs_path)] module.__file__ = abs_path module.schema = fileSchema