Hello !

Because I needed mutagen in a project, I added this to the __init__.py
of my application:

import sys, os
# add modules dir to sys.path
sys.path.append( os.path.abspath(request.folder + 'modules/'))

It works like a charm but why isn't "modules" already in sys.path
since its purpose is to hold 3rd party modules that may be imported
later ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to