subdirectories for sys.path import?

M

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
 
M

mh

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!
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top