subdirectories for sys.path import?

2008-10-09 Thread mh
I'm currently sharing a directory on sys.path with another
group.

We don't have the option to modify sys.path.

In order to reduce conflicts between the two group's code,
installation procedures, etc, I'd like to make a subdirectory
for each group, and have each group manage their own subdirectory.

/oursharedpath/lib/python/group1
/oursharedpath/lib/python/group2

Is there a way to import a module from one of these subdirectories?
Any other more pythonic ways to approach the situation?

Many TIA!
Mark


-- 
Mark Harrison
Pixar Animation Studios
--
http://mail.python.org/mailman/listinfo/python-list


Re: subdirectories for sys.path import?

2008-10-09 Thread mh
[EMAIL PROTECTED] wrote:
 Is there a way to import a module from one of these subdirectories?
 Any other more pythonic ways to approach the situation?

ah, the magic of __init__.py.

Thanks all!

-- 
Mark Harrison
Pixar Animation Studios
--
http://mail.python.org/mailman/listinfo/python-list