python packages cross references
User Paolino
paolo.veronelli at yahoo.it
Tue Aug 17 03:29:25 EDT 2004
Roman Yakovenko wrote:
> Hi. I need help( or solution :-) ).
> Problem: my project has 3 packages
> prj
> +------A
> +------B
> +------Utils
>
> The question is: what is the right way to use functionality from Utils in A and B packages ?
> I know that after importing package I know it's location, but it doesn't help me in any module within package A or B.
> I can add full path to prj to sys.path but it seems to be the wrong way.
> May be I missed something?
Adding fullpath is IMO even hacking than make symlinks in the
directories which has been my workaround.
My question still remains :why can't I walk back in directories
('packaged') whit from/import statements?
Regards Paolino
More information about the Python-list
mailing list