Re: Application libraries private, Distutils metadata available for console scripts and introspection
On 2 September 2015 at 22:45, Ben Finney <ben+debian@benfinney.id.au> wrote:
> Robert Collins <robertc@robertcollins.net> writes:
>
>> That private directory must be on the python search path when running
>> the application (or the modules can't be imported).
>
> Not at all. The application's private modules are imported only via
> relative imports.
Relative imports still consult the various python module search
mechanisms, which is the top level path, + per package paths (but to
import the highest of those packages you have to import the first
member from the root... which is on the top level path).
-Rob
--
Robert Collins <rbtcollins@hp.com>
Distinguished Technologist
HP Converged Cloud
Reply to: