slightly off topic...

my app/__init__.py file always has this bit:
====
import sys
appdir= sys.path[0]
appexternals= "%s/##APPNAME##/lib/externals" % appdir
sys.path.append(appexternals)

import OpenSocialNetwork
OpenSocialNetwork.appname= '##APPNAME##/'
====

osn is a microframework that's in lib/externals ( as are various other
modules ; i find it easier to maintain apps like this ) ; this code
does nothing special, other than stashing the appname -- however once
that's done, it makes life a whole lot easier trying to access
different modules within the app from the microframework  , which is
what I think you're trying to do ?

-- 
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