當前位置: 首頁>>代碼示例>>Python>>正文


Python PathsHelper.initialize方法代碼示例

本文整理匯總了Python中AutoBackups.autobackups.paths_helper.PathsHelper.initialize方法的典型用法代碼示例。如果您正苦於以下問題:Python PathsHelper.initialize方法的具體用法?Python PathsHelper.initialize怎麽用?Python PathsHelper.initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在AutoBackups.autobackups.paths_helper.PathsHelper的用法示例。


在下文中一共展示了PathsHelper.initialize方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: plugin_loaded

# 需要導入模塊: from AutoBackups.autobackups.paths_helper import PathsHelper [as 別名]
# 或者: from AutoBackups.autobackups.paths_helper.PathsHelper import initialize [as 別名]
def plugin_loaded():
    global settings
    global hashes

    hashes = {}
    platform = sublime.platform().title()

    if (platform == "Osx"):
        platform = "OSX"
    settings = sublime.load_settings('AutoBackups ('+platform+').sublime-settings')

    backup_dir = settings.get('backup_dir')
    backup_per_day = settings.get('backup_per_day')
    backup_per_time = settings.get('backup_per_time')

    PathsHelper.initialize(platform, backup_dir, backup_per_day, backup_per_time)
    cprint('AutoBackups: Plugin Initialized')
    sublime.set_timeout(gc, 10000)
開發者ID:mayroncachina,項目名稱:sublimetext-autobackups,代碼行數:20,代碼來源:AutoBackups.py


注:本文中的AutoBackups.autobackups.paths_helper.PathsHelper.initialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。