#NEWLINE# def check_dependencies( ) : #NEWLINE# #INDENT# '\n  Double check whether POX and Hassel are at the latest software versions.\n  ' #NEWLINE# ( ( print >> sys . stderr ) , 'Checking software versions...' ) #NEWLINE# pox_path = os . path . join ( os . path . dirname ( __file__ ) , '..' , 'pox' ) #NEWLINE# if ( not check_sw_version ( pox_path , 'remotes/origin/debugger' ) ) : #NEWLINE# #INDENT# ( ( print >> sys . stderr ) , 'Warning: POX version not up-to-date. You should probably run:\n $ (cd pox; git pull) ' ) #NEWLINE# #UNINDENT# hassel_path = os . path . join ( os . path . dirname ( __file__ ) , 'hassel' ) #NEWLINE# if ( not os . path . exists ( os . path . join ( pox_path , 'LICENSE.txt' ) ) ) : #NEWLINE# #INDENT# ( ( print >> sys . stderr ) , 'Warning: Hassel submodule not loaded.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not check_sw_version ( hassel_path , 'remotes/origin/HEAD' ) ) : #NEWLINE# #INDENT# ( ( print >> sys . stderr ) , 'Warning: Hassel version not up-to-date. You should probably run:\n $ git submodule update ' )