469,352 Members | 2,154 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

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
Jul 18 '05 #1
0 934

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.