Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'paths': 0.05; 'missed': 0.09; 'python': 0.09; 'runtime': 0.09; 'terry': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:error': 0.11; 'library': 0.15; 'folks': 0.15; 'commandline': 0.16; 'reedy': 0.16; 'side.': 0.16; 'subject:too': 0.16; 'sys.path': 0.16; 'wrote:': 0.17; 'mechanism': 0.17; 'typing': 0.17; 'file.': 0.20; 'own.': 0.22; 'wednesday,': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'is?': 0.27; 'post': 0.28; 'checks': 0.30; 'keyword': 0.30; 'switch': 0.32; 'traceback': 0.33; 'received:google.com': 0.34; 'adds': 0.35; 'consistent': 0.35; 'path': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'should': 0.36; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'your': 0.60; 'most': 0.61; 'include:': 0.61; 'leaving': 0.62; 'personal': 0.62; 'more': 0.63; 'ago.': 0.66; '2013': 0.84; 'applicable.': 0.84; 'received:209.85.216.184': 0.84; 'alone.': 0.91 X-Received: by 10.49.4.231 with SMTP id n7mr117844qen.34.1358555696610; Fri, 18 Jan 2013 16:34:56 -0800 (PST) Newsgroups: comp.lang.python Date: Fri, 18 Jan 2013 16:34:56 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.196.109.94; posting-account=h3aEwQoAAACiuqX-oR3gvCVFm8lLHoWj References: <85ec4ecd-4d28-4c3e-980f-d7668e059eed@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 70.196.109.94 MIME-Version: 1.0 Subject: Re: PyWart: Exception error paths far too verbose From: Rick Johnson To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358555706 news.xs4all.nl 6987 [2001:888:2000:d::a6]:36159 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37038 On Wednesday, January 16, 2013 6:51:31 PM UTC-6, Terry Reedy wrote: > I missed in your original post that you only want one consistent > personal library path abbreviated, leaving everything else alone. So the > above is not applicable. And a custom excepthook very easy. > > How should the traceback mechanism -will- know what that path is? Well, the jury is still deliberating on the specifics, however, as for myself, i would sway more to the /explicit/ side. A few possibilities include: * A configuration file. Python already checks the current directory for ".pth" files, which it then reads and adds the contained paths to sys.path -- most folks stopped typing commands OVER and OVER on the commandline many years ago. But to each his own. * A runtime command or keyword placed in a script (YUCK!) * A commandline switch (only good for members of the python historical society.)