#NEWLINE# def main( ) : #NEWLINE# #INDENT# if ( not say_hello ( ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# create_logger ( ) #NEWLINE# options = create_option_parser ( ) #NEWLINE# system = sys . platform #NEWLINE# path_update = False #NEWLINE# path = '' #NEWLINE# if system . startswith ( 'linux' ) : #NEWLINE# #INDENT# linux_setup ( ) #NEWLINE# system = setuputil . common . LINUX #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( system == 'win32' ) or ( system == 'cygwin' ) ) : #NEWLINE# #INDENT# w = windows_init ( options ) #NEWLINE# windows_setup ( w ) #NEWLINE# system = setuputil . common . WINDOWS #NEWLINE# path_update = w . has_bash_changed ( ) #NEWLINE# path = w . get_windows_path_update ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( sys . platform == 'darwin' ) : #NEWLINE# #INDENT# m = mac_init ( options ) #NEWLINE# mac_setup ( m ) #NEWLINE# system = setuputil . common . MAC #NEWLINE# path_update = m . has_bash_changed ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . error ( ( system + ' not supported.' ) ) #NEWLINE# return 1 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( not options . no_android ) : #NEWLINE# #INDENT# a = android_init ( system , path ) #NEWLINE# android_setup ( a ) #NEWLINE# path_update = ( path_update or a . has_bash_changed ( ) ) #NEWLINE# if ( system == setuputil . common . WINDOWS ) : #NEWLINE# #INDENT# path = ( ( a . get_windows_path_update ( ) + os . pathsep ) + path ) #NEWLINE# #UNINDENT# #UNINDENT# if path_update : #NEWLINE# #INDENT# if ( system == setuputil . common . LINUX ) : #NEWLINE# #INDENT# print ( '\n~/.bashrc has been changed. Please refresh your bashrc by running\n\tsource ~/.bashrc' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( system == setuputil . common . MAC ) : #NEWLINE# #INDENT# print ( '\n~/.bash_profile has been changed. Please refresh your bash profile by running\n\tsource ~/.bash_profile' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# setuputil . windows . update_windows_path ( path ) #NEWLINE# print ( '\nWindows PATH has been changed. Please restart the command prompt before continuing.' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return 0