#NEWLINE# def plugin_loaded( ) : #NEWLINE# #INDENT# rsettings = sublime . load_settings ( 'R-Box.sublime-settings' ) #NEWLINE# ssettings = sublime . load_settings ( 'SendText+.sublime-settings' ) #NEWLINE# psettings = sublime . load_settings ( 'Preferences.sublime-settings' ) #NEWLINE# if ( not rsettings . get ( 'show_sendtext_installer_message' , True ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( ( 'SendText+' in psettings . get ( 'ignored_packages' , [ ] ) ) or ( 'SendTextPlus' in psettings . get ( 'ignored_packages' , [ ] ) ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( ( 'SendText+' in sys . modules ) or ( 'SendTextPlus' in sys . modules ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( 'package_control' not in sys . modules ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ok = sublime . ok_cancel_dialog ( 'R-Box: "SendTextPlus" is missing, sending code feature requires "SendTextPlus". Install it now?' ) #NEWLINE# if ok : #NEWLINE# #INDENT# prog = rsettings . get ( 'prog' ) #NEWLINE# if prog : #NEWLINE# #INDENT# ssettings . set ( 'prog' , prog ) #NEWLINE# sublime . save_settings ( 'SendText+.sublime-settings' ) #NEWLINE# #UNINDENT# sublime . active_window ( ) . run_command ( 'advanced_install_package' , { #NEWLINE# #INDENT# 'packages' : 'SendTextPlus' , #NEWLINE# #UNINDENT# } )