Re: Not appending ("lib") to sys.path breaks tests.

2017-09-08 Thread Ian Kelly
On Fri, Sep 8, 2017 at 3:54 PM, Leam Hall wrote: > On 09/08/2017 05:41 PM, Ian Kelly wrote: > >> I'm confused about where the character_tools import is made. If that's >> within a module in the lib package, it should be fine. > > >> It looks like it's failing to find the lib package. Since you rem

Re: Not appending ("lib") to sys.path breaks tests.

2017-09-08 Thread Leam Hall
On 09/08/2017 05:41 PM, Ian Kelly wrote: I'm confused about where the character_tools import is made. If that's within a module in the lib package, it should be fine. It looks like it's failing to find the lib package. Since you removed the "lib" directory from sys.path, does its parent direc

Re: Not appending ("lib") to sys.path breaks tests.

2017-09-08 Thread Ian Kelly
On Fri, Sep 8, 2017 at 3:18 PM, Leam Hall wrote: > A kind soul pointed out that my code uses a sys.path.append("lib") to get > files to be imported: > > sys.path.append("lib") > from character_tools import * > > He noted that having an __init__.py in lib and using: > > from