From 5fc5d3b6ca9935b788f922fd88a091806f253572 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 13 May 2016 04:26:57 +0200 Subject: [PATCH] [mod] imports at the beginning of the file --- src/yunohost/hook.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/yunohost/hook.py b/src/yunohost/hook.py index b263f3ef6..60d8324ee 100644 --- a/src/yunohost/hook.py +++ b/src/yunohost/hook.py @@ -29,6 +29,7 @@ from glob import iglob from moulinette.core import MoulinetteError from moulinette.utils import log +from moulinette.utils.process import call_async_output hook_folder = '/usr/share/yunohost/hooks/' custom_hook_folder = '/etc/yunohost/hooks.d/' @@ -304,8 +305,6 @@ def hook_exec(path, args=None, raise_on_error=False, no_trace=False, env -- Dictionnary of environment variables to export """ - from moulinette.utils.process import call_async_output - # Validate hook path if path[0] != '/': path = os.path.realpath(path)