You can add initialisation code to the script generated with the initialization
entry:
[sample]
recipe = zc.recipe.egg:scripts
eggs = sample
interpreter = samplepy
initialization =
import os
os.environ['PATH'] = '${buildout:bin-directory}' + os.pathsep + os.environ['PATH']
Here we interpolated the buildout bin/
directory to be prepended to the PATH
environment variable.