def initialize(section=None): global __INITIALIZED__ if __INITIALIZED__: return False configure_logging() configure_process() configure_locale() # init logging logger.ntm_log_instance.init_logging() configure_migration() configure_logging_part_2() # check python version check_python() # initialize the main SB database main_db.upgrade_database(main_db.DBConnection(), databases.InitialSchema) configure_general() configure_updates() configure_wake_on_lan() configure_nzbs(CFG) configure_torrents(CFG) configure_remote_paths() configure_plex(CFG) configure_niceness() configure_containers() configure_transcoder() configure_passwords_file() configure_utility_locations() configure_sections(section) configure_torrent_class() __INITIALIZED__ = True # finished initializing return __INITIALIZED__