# HG changeset patch # User ymh # Date 1281021914 -7200 # Node ID 92e78a11e8dff875a698afe691b1e7dde0383734 # Parent 35d2eacbb4cb50905d37cc166864dd0717421bba small changes diff -r 35d2eacbb4cb -r 92e78a11e8df .pydevproject --- a/.pydevproject Thu Jun 03 17:44:45 2010 +0200 +++ b/.pydevproject Thu Aug 05 17:25: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 35d2eacbb4cb -r 92e78a11e8df sbin/create_python_env.py --- a/sbin/create_python_env.py Thu Jun 03 17:44:45 2010 +0200 +++ b/sbin/create_python_env.py Thu Aug 05 17:25:14 2010 +0200 @@ -164,7 +164,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 35d2eacbb4cb -r 92e78a11e8df web/blinkster/handler.py --- a/web/blinkster/handler.py Thu Jun 03 17:44:45 2010 +0200 +++ b/web/blinkster/handler.py Thu Aug 05 17:25: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