Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Robert Collins Newsgroups: linux.debian.maint.python Subject: Re: Application libraries private, Distutils metadata available for console scripts and introspection Date: Wed, 02 Sep 2015 13:30:02 +0200 Message-ID: References: X-Original-To: Ben Finney X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Sep 2 11:20:35 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.701 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: DYN_NJABL=SKIP(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=SKIP(-1.5) CL_IP_EQ_HELO_IP=-2 (check from: .robertcollins. - helo: .mail-io0-f181.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=lZ6rSADzHpF1rQXxJz+0qn6TZ3X9b7OFSBdo05XrprM=; b=dJcj5nM8bqdo46jhOx6dHJ3JQC3WVJVXT8j/Dm/Wx0dMSXMlNumrXmJ+BdbwYeflRV AfkUKb+d6kOwZ0VHmM+hMapvqTyWxlxCwggJcKWCxae1x/C3EDhtItgY0FLiFgzMDlkG fqsyVUd5TSLafAeV48gvq0jChJOZeHjQtmly+QXiKsuZj0d8ilc0t63YEIryOtGXwIVF hMLSu/GK4DLy3ZvzC+sICGfARC6X7CtGUFHyE50gUrR+jvcWy4St7r6qJa7/XpUMwXlq 5snC8PBO89ciYhv6mEDgSxcdutz+BoTo2npm0VKaNGZjoo864QiIBkzS1Hdbb4o++UPV Xu1Q== X-Gm-Message-State: ALoCoQnrPZmGhQeKobBVwqdagN5sx1YO2itMBod3Ewqc9pXuPt8TwJWg45/OQxlDZqQt2NRxxXV3 MIME-Version: 1.0 X-Received: by 10.107.10.30 with SMTP id u30mr40065630ioi.7.1441192819721; Wed, 02 Sep 2015 04:20:19 -0700 (PDT) X-Originating-IP: [122.57.98.209] Content-Type: text/plain; charset=UTF-8 X-Mailing-List: archive/latest/12538 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAJ3HoZ0gkWshkFOnGksPp3x-uhWDMv7D5ZmybCRXo2Y35bf8sg@mail.gmail.com Approved: robomod@news.nic.it Lines: 20 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Python X-Original-Date: Wed, 2 Sep 2015 23:20:19 +1200 X-Original-Message-ID: X-Original-References: <85bndmc0ln.fsf@benfinney.id.au> <85k2s99q1h.fsf@benfinney.id.au> <85fv2x9k1o.fsf@benfinney.id.au> Xref: csiph.com linux.debian.maint.python:7231 On 2 September 2015 at 22:45, Ben Finney wrote: > Robert Collins 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 Distinguished Technologist HP Converged Cloud