Re: [Tutor] Import package module problem

2009-05-12 Thread mandel
> Le Tue, 12 May 2009 08:37:27 +0100 (BST), > man...@themacaque.com s'exprima ainsi: > >> Lets see if I understand what you mean, in my example I should add an >> import inside __init__.py to be able to use relative imports: >> >> /general >>__init__.py >> from address_book import AddressBook >

Re: [Tutor] Import package module problem

2009-05-12 Thread mandel
> man...@themacaque.com wrote: >> Hello there, >> >> I have just started working with python and I have some issues >> understanding how I should be importing modules from packages. Curretly >> I >> have the following tree structure: >> >> general/ >> __init__.py >> address_book.py >> group

Re: [Tutor] Import package module problem

2009-05-12 Thread mandel
> Le Mon, 11 May 2009 21:44:09 +0100 (BST), > man...@themacaque.com s'exprima ainsi: > >> Hello there, >> >> I have just started working with python and I have some issues >> understanding how I should be importing modules from packages. Curretly >> I >> have the following tree structure: >> >> gen

[Tutor] Import package module problem

2009-05-11 Thread mandel
Hello there, I have just started working with python and I have some issues understanding how I should be importing modules from packages. Curretly I have the following tree structure: general/ __init__.py address_book.py groups/ __init__.py contact_group.py where groups and gene