本文整理汇总了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)