#! /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())

#! /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())

Make it work when executed from a different directory
Make it work when executed from a different directory