python packages cross references

Discussion in 'Python' started by Roman Yakovenko, Aug 17, 2004.

  1. 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?

    Thanks.

    Roman
     
    Roman Yakovenko, Aug 17, 2004
    #1
    1. Advertising

  2. Roman Yakovenko

    Peter Maas Guest

    Roman Yakovenko schrieb:
    > 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 ?


    Look at Python Tutorial Packages (6.4). You can make a prj package
    and use intra-package references (6.4.2) for A, B and Utils.

    Mit freundlichen Gruessen,

    Peter Maas

    --
    -------------------------------------------------------------------
    Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
    E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
    -------------------------------------------------------------------
     
    Peter Maas, Aug 17, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul  Smith
    Replies:
    0
    Views:
    753
    Paul Smith
    Nov 18, 2003
  2. Nancy
    Replies:
    6
    Views:
    1,377
    Nancy
    Jan 17, 2007
  3. Replies:
    8
    Views:
    756
    Bruno Desthuilliers
    Dec 12, 2006
  4. David Lyon
    Replies:
    19
    Views:
    609
    David Lyon
    Apr 24, 2009
  5. Ian
    Replies:
    3
    Views:
    190
Loading...

Share This Page