本文整理匯總了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)