hm...

i don't know if this would help, but right now on the
OpenSocialNetwork framework we've developed we do something possibly
similar:

the __init__.py of the project has this:

===
import sys
appdir= sys.path[0]
appexternals= "%s/artwelove/lib/externals" % appdir
sys.path.append(appexternals)

import OpenSocialNetwork
OpenSocialNetwork.appname= '$$APPNAME$$'
===

that lets us do stuff like this in the framework classes

==
import OpenSocialNetwork
app_h = getattr(__import__( '%s.lib' % OpenSocialNetwork.appname , {},
{}, ['']), 'helpers')
app_model = getattr(__import__(OpenSocialNetwork.appname, {}, {},
['']), 'model')
==

so its not really a relative import... but by keeping everything in
lib/externals/ and then using some standard 'hooks' , we can get at
any code/package need.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to