Python and CVS: several modules, one namespace

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Weholt

    Python and CVS: several modules, one namespace

    This might be slightly off-topic, but I'll ask anyway:

    I want to import several modules into my cvs-repository, but I want them all
    to be in the same namespace when they're checked out.

    For instance, I got these modules foo1.py, foo2.py, foo3.py in the namespace
    bar, called like so :

    from bar import foo2, foo3

    This matched the folder-structure ../bar/foo2, ../bar/foo3 on the
    filesystem. But I need to import them as foo1, foo2 and foo3. When checked
    out they should all be available in the same namespace without having to
    create the folder, __init__.py first. Is this possible?

    When I check out foo1 it creates ../bar/foo1, when I check out foo2 in the
    same folder it creates foo2 etc. without messing up the CVS-folders .... (
    Hm ... when I look at the whole thing now, it seems impossible )

    Any hints or clues on how to manage different modules in the same namespace
    when importing them into CVS ??? My main goal is to have one namespace for
    all my modules. Please tell me if this doesn't make any sense.

    Thanks in advance,
    Thomas Weholt


Working...