
activate_this = '/Users/ymh/dev/workspace/blinkster/sbin/bvenv/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))

#ALLDIRS = ['/Users/ymh/dev/workspace/blinkster/sbin/bvenv/lib/python2.5/site-packages']

##import sys 
#import site 

#prev_sys_path = list(sys.path) 

# Add each new site-packages directory.
#for directory in ALLDIRS:
#    site.addsitedir(directory)

# Reorder sys.path so new directories at the front.
#new_sys_path = [] 
#for item in list(sys.path): 
#    if item not in prev_sys_path: 
#        new_sys_path.append(item) 
#        sys.path.remove(item) 
#sys.path[:0] = new_sys_path 


#import django.core.handlers.modpython
from django.core.handlers.modpython import handler




#def handler(req):
#    activate_this = req.get_options().get("virtualenv.activate_path")
#    execfile(activate_this, dict(__file__=activate_this))
    # Remember original sys.path.

#    return django.core.handlers.modpython.handler(req)