Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94830

Re: debugging during package development

From dieter <dieter@handshake.de>
Subject Re: debugging during package development
Date 2015-08-01 07:56 +0200
References <87fv43y6z4.fsf@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1124.1438408608.3674.python-list@python.org> (permalink)

Show all headers | View raw


Seb <spluque@gmail.com> 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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: debugging during package development dieter <dieter@handshake.de> - 2015-08-01 07:56 +0200

csiph-web