diff --git a/buildout/hooks/tcl-hooks.py b/buildout/hooks/tcl-hooks.py index 04af89e8de3b58f2d77e55b35f70fb60e91c0c08..66a8099fc26800f2e2c5db81a979b6570e65a383 100644 --- a/buildout/hooks/tcl-hooks.py +++ b/buildout/hooks/tcl-hooks.py @@ -1,3 +1,11 @@ import os +import shutil def pre_configure_hook(options, buildout): os.chdir('unix') + +def post_make_hook(options, buildout): + bindir = os.path.join(options['location'], 'bin') + destination = os.path.join(bindir, 'tclsh') + if not os.path.exists(destination): + original = os.path.join(bindir, [q for q in os.listdir(bindir) if q.startswith('tclsh')][0]) + shutil.copy(original, destination)