#NEWLINE# def plugin_loaded( ) : #NEWLINE# #INDENT# PACKAGES_PATH = sublime . packages_path ( ) #NEWLINE# TARGET_PATH = os . path . join ( PACKAGES_PATH , PACKAGE_NAME ) #NEWLINE# version_file = os . path . join ( TARGET_PATH , 'version' ) #NEWLINE# version = 0 #NEWLINE# if os . path . isfile ( version_file ) : #NEWLINE# #INDENT# f = open ( version_file , 'r' ) #NEWLINE# version = f . read ( ) . strip ( ) #NEWLINE# f . close ( ) #NEWLINE# #UNINDENT# if ( ( not os . path . isdir ( TARGET_PATH ) ) or ( not ( VERSION == version ) ) ) : #NEWLINE# #INDENT# file_list = [ 'Main.sublime-menu' , 'pscp.exe' , 'version' , 'README.md' , 'SublimeSimpleSync.sublime-settings' , 'sync.bat' ] #NEWLINE# try : #NEWLINE# #INDENT# os . makedirs ( TARGET_PATH ) #NEWLINE# extract_zip_resource ( BASE_PATH , file_list , TARGET_PATH ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# print ( e )