#NEWLINE# def endSetup( self ) : #NEWLINE# #INDENT# if ( self . os != 'osx' ) : #NEWLINE# #INDENT# env_path = [ self . env_bin_dir ] #NEWLINE# self . saveEnvPaths ( env_path ) #NEWLINE# #UNINDENT# if ( self . os == 'osx' ) : #NEWLINE# #INDENT# executable = os . path . join ( self . env_bin_dir , 'python' ) #NEWLINE# cmd = [ ( '"%s"' % executable ) , '-m' , 'platformio' , '--version' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# executable = os . path . join ( self . env_bin_dir , 'pio' ) #NEWLINE# cmd = [ ( '"%s"' % executable ) , '--version' ] #NEWLINE# #UNINDENT# out = childProcess ( sys_os ) #NEWLINE# pio_version = match ( '\\w+\\W \\w+ (.+)' , out [ 1 ] ) . group ( 1 ) #NEWLINE# self . Preferences . set ( 'pio_version' , pio_version ) #NEWLINE# sys_os = Tools . getOsName ( ) #NEWLINE# preset_path = Paths . getPresetPath ( ) #NEWLINE# plg_path = Paths . getPluginPath ( ) #NEWLINE# dst = os . path . join ( plg_path , 'Settings-Default' , 'Main.sublime-menu' ) #NEWLINE# if ( sys_os == 'windows' ) : #NEWLINE# #INDENT# if ( platform . release ( ) == '7' ) : #NEWLINE# #INDENT# src_path = os . path . join ( preset_path , 'Main.sublime-menu.w7' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# src_path = os . path . join ( preset_path , 'Main.sublime-menu.windows' ) #NEWLINE# #UNINDENT# copy ( src_path , dst ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( sys_os == 'osx' ) : #NEWLINE# #INDENT# src_path = os . path . join ( preset_path , 'Main.sublime-menu.osx' ) #NEWLINE# copy ( src_path , dst ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# src_path = os . path . join ( preset_path , 'Main.sublime-menu.linux' ) #NEWLINE# copy ( src_path , dst ) #NEWLINE# #UNINDENT# #UNINDENT# sublime . set_timeout ( self . generateFilesCall , 0 ) #NEWLINE# self . Preferences . set ( 'protected' , True ) #NEWLINE# self . Preferences . set ( 'enable_menu' , True )