#!/usr/bin/env python

# execute BDF program
if __name__ == '__main__' :
    import sys
    import os

    fullBfdPath = sys.argv[0]
    while (os.path.islink(fullBfdPath)):
        tmpFullPath = os.readlink(fullBfdPath)
        if (not os.path.isabs(tmpFullPath)):
            tmpFullPath = os.path.join(os.path.dirname(fullBfdPath), tmpFullPath)
        fullBfdPath = tmpFullPath

    sys.path.append(os.path.split(fullBfdPath)[0])
    import bfdTools
    bfdTools.execute(sys.argv)
