import commands

SConscript(['src/SConstruct'])
env = Environment()

path = commands.getoutput('pwd')

def help():
    path_lib = '"' + path + '/src:' + '$LD_LIBRARY_PATH"' 
    print '\n You will need to set library path \n'
    print '   export LD_LIBRARY_PATH=' + path_lib +'\n'
    path_lib = '"' + path + '/src:' + '$DYLD_LIBRARY_PATH"' 
    print ' Or on a Mac\n'
    print '   export DYLD_LIBRARY_PATH=' + path_lib +'\n'

if not env.GetOption("clean"):
    import atexit
    atexit.register(help)
