Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'path.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'do,': 0.15; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'sorts': 0.16; 'stuff.': 0.16; 'debugging': 0.18; 'tree': 0.18; 'work,': 0.21; 'seems': 0.23; 'sets': 0.23; "i've": 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'appreciated.': 0.27; 'environment': 0.29; "i'm": 0.30; "i'd": 0.31; "can't": 0.32; 'related': 0.32; 'topic': 0.32; 'source': 0.33; 'advice': 0.35; 'level': 0.35; 'but': 0.36; 'too': 0.36; 'there': 0.36; 'tool': 0.36; '(and': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us- ascii': 0.37; 'seem': 0.37; 'sure': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'received:de': 0.40; 'some': 0.40; 'received:217': 0.66 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: dieter Subject: Re: debugging during package development Date: Sat, 01 Aug 2015 07:56:36 +0200 References: <87fv43y6z4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: pd9e084ad.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:p28/h09vTtBJz+5OptIy+Hpefaw= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1438408608 news.xs4all.nl 2835 [2001:888:2000:d::a6]:34148 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94830 Seb writes: > It seems too cumbersome to have to update `sys.path` to include the > development tree of a package (and sub-packages) that's still very > young. With lots of debugging to do, the last thing I'd want is to > worry about the search path. So I've been searching for better ways to > work, but I can't seem hit the right keywords and come with all sorts of > tangentially related stuff. I'm sure there must be some tool that sets > up the development environment when the package source is not on > `sys.path`. Any advice on this topic would be appreciated. On "*nix" like systems, you can set "sys.path" via the envvar "PYTHONPATH". Note that "sys.path" needs only contain the top level packages - subpackages are found automatically.