old_contents: #! /usr/bin/env python
  '''
  Simplistic chain discovery
  '''
  
  import sys
  sys.path.append('../..')
  
  from playtag.cables.digilent import Jtagger
  from playtag.jtag.discover import Chain
  
  print Chain(Jtagger())
  
new_contents: #! /usr/bin/env python
  '''
  Simplistic chain discovery
  '''
  
  import sys
  import os
  
  sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../..'))
  
  from playtag.cables.digilent import Jtagger
  from playtag.jtag.discover import Chain
  
  print Chain(Jtagger())
  
subject: Make it work when executed from a different directory