http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages perhaps :)

On 9/19/06, Ksenia Marasanova <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> Pardon me if this is a silly question, I am just starting to
> understand setuptools :-)
> Is it possible to have several turbogears applications that can be
> imported as a subpackage?
> I am sure it's unclear, I'll try to explain it :)
>
> My directory structure is:
> /www
> /www/app1
> /www/app2
> /www/app3
>
> All the apps are regular TG applications created with quickstart. When
> i run "python setup.py develop" in app1, I can import it from any
> other project as:
>
> from app1 import foo
>
>
> What I'd like to do, is to import it like this:
> from mycompanyname.app1 import foo
>
> The reason: name collision with other python packages and clear visual
> distinction between "own" code and third party.
>
> I tried to modify package name in setup.py, but without much succes...
> Any hints?
>
> Thanks a lot
> Ksenia.
>
> >
>


-- 
cheers
    elvelind grandin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to