# HG changeset patch # User ymh # Date 1287675614 -7200 # Node ID cabe73ea6929599a5821fed01b05ec6c93bc6756 # Parent 1b99846565d527d0f05e19df30ab15354acc2f6a# Parent 012451a812f1abd21e7e30f887f8f2ba90f58b4b Merge with 012451a812f1abd21e7e30f887f8f2ba90f58b4b diff -r 1b99846565d5 -r cabe73ea6929 .pydevproject --- a/.pydevproject Thu Oct 21 17:39:01 2010 +0200 +++ b/.pydevproject Thu Oct 21 17:40:14 2010 +0200 @@ -3,12 +3,12 @@ python 2.6 -Blinkster +Default /blinkster/web/blinkster /blinkster/web/lib -/Users/ymh/dev/workspace/blinkster/sbin/blinkster/lib/python2.6/site-packages +/Volumes/Data/Dev/workspace/blinkster/sbin/bvenv/lib/python2.5/site-packages diff -r 1b99846565d5 -r cabe73ea6929 sbin/create_python_env.py --- a/sbin/create_python_env.py Thu Oct 21 17:39:01 2010 +0200 +++ b/sbin/create_python_env.py Thu Oct 21 17:40:14 2010 +0200 @@ -154,7 +154,7 @@ if sys.version_info >= (2,6): destination.write("JCC=$(PYTHON) -m jcc.__main__ --shared --arch x86_64 --arch i386\\n") else: - destination.write("JCC=$(PYTHON) -m jcc --shared --arch x86_64 --arch i386\\n") + destination.write("JCC=$(PYTHON) -m jcc --shared\\n") destination.write("NUM_FILES=2\\n") elif system_str == "Windows": destination.write("JCC=$(PYTHON) -m jcc.__main__ --shared --arch x86_64 --arch i386\\n") diff -r 1b99846565d5 -r cabe73ea6929 web/blinkster/handler.py --- a/web/blinkster/handler.py Thu Oct 21 17:39:01 2010 +0200 +++ b/web/blinkster/handler.py Thu Oct 21 17:40:14 2010 +0200 @@ -1,11 +1,36 @@ -#activate_this = '/Users/ymh/dev/workspace/blinkster/sbin/blinkster/bin/activate_this.py' -#execfile(activate_this, dict(__file__=activate_this)) +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) -import django.core.handlers.modpython -#from django.core.handlers.modpython import handler +# 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 + -def handler(req): - activate_this = req.get_options().get("virtualenv.activate_path") - execfile(activate_this, dict(__file__=activate_this)) - return django.core.handlers.modpython.handler(req) \ No newline at end of file +#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) \ No newline at end of file