bin/buildout
author Nishanth Amuluru <nishanth@fossee.in>
Sun, 09 Jan 2011 20:26:11 +0530
changeset 368 a4fa11b2cb5c
parent 307 c6bca38c1cbf
permissions -rwxr-xr-x
add textbook works fine

#!/usr/bin/python -S

import sys
sys.path[0:0] = [
    '/home/nishanth/Desktop/pytask/parts/buildout',
    ]


import os
path = sys.path[0]
if os.environ.get('PYTHONPATH'):
    path = os.pathsep.join([path, os.environ['PYTHONPATH']])
os.environ['BUILDOUT_ORIGINAL_PYTHONPATH'] = os.environ.get('PYTHONPATH', '')
os.environ['PYTHONPATH'] = path
import site # imports custom buildout-generated site.py

import zc.buildout.buildout

if __name__ == '__main__':
    zc.buildout.buildout.main()