From 14c4fafd396139681caf3ead2322f6863d954e79 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 28 Jun 2019 19:51:35 +0200 Subject: [PATCH] Localise import to avoid setuptools install error --- moulinette/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/core.py b/moulinette/core.py index c438a6c7..ecd78494 100644 --- a/moulinette/core.py +++ b/moulinette/core.py @@ -4,7 +4,6 @@ import os import time import json import logging -import psutil from importlib import import_module @@ -525,6 +524,7 @@ class MoulinetteLock(object): return lock_pids def _is_son_of(self, lock_pids): + import psutil if lock_pids == []: return False