From 3b6e1b55a0ab527af98c901cf2d855359500b14e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 30 Jul 2015 14:52:01 +0200 Subject: [AntiStandby] Fix max_mtime method --- module/plugins/hooks/AntiStandby.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/plugins/hooks') diff --git a/module/plugins/hooks/AntiStandby.py b/module/plugins/hooks/AntiStandby.py index 93eca09cc..ba462e002 100644 --- a/module/plugins/hooks/AntiStandby.py +++ b/module/plugins/hooks/AntiStandby.py @@ -13,6 +13,7 @@ except ImportError: pass from module.plugins.internal.Addon import Addon, Expose +from module.utils import fs_join class Kernel32(object): @@ -26,7 +27,7 @@ class Kernel32(object): class AntiStandby(Addon): __name__ = "AntiStandby" __type__ = "hook" - __version__ = "0.06" + __version__ = "0.07" __status__ = "testing" __config__ = [("activated", "bool", "Activated" , True ), @@ -149,7 +150,7 @@ class AntiStandby(Addon): @Expose def max_mtime(self, path): return max(0, 0, - *(os.path.getmtime(os.path.join(root, file)) + *(os.path.getmtime(fs_join(root, file)) for root, dirs, files in os.walk(path, topdown=False) for file in files)) -- cgit v1.2.3