# coding=utf-8
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2018

import os
import streamsx.scripts.extract

def _spl_dir():
    print('XXX-File', __file__)
    tests_dir = os.path.dirname(__file__)
    print('XXX-test_dir', tests_dir)
    r =  os.path.abspath(os.path.dirname(tests_dir))
    print('XXX-SPL_TEST_dir', r)
    return r

def _tk_dir(tk):
    print('XXX-TK', tk)
    r =  os.path.join(_spl_dir(), tk)
    print('XXX-TK-DIR', r)
    return r

def _extract_tk(tk):
    streamsx.scripts.extract.main(['-i', _tk_dir(tk), '--make-toolkit'])

@@ -138,40 +138,8 @@
 ():%0A
-    print('XXX-File', __file__)%0A
     
@@ -184,49 +184,14 @@
     
-print('XXX-test_dir', tests_dir)%0A    r = 
+return
  os.
@@ -235,173 +235,65 @@
 r))%0A
-    print('XXX-SPL_TEST_dir', r)%0A    return r%0A%0Adef _tk_dir(tk):%0A    print('XXX-TK', tk)%0A    r =  os.path.join(_spl_dir(), tk)%0A    print('XXX-TK-DIR', r)%0A    return r
+%0Adef _tk_dir(tk):%0A    return os.path.join(_spl_dir(), tk)
 %0A%0Ade

Remove debugging