Localise import to avoid setuptools install error

This commit is contained in:
Luke Murphy 2019-06-28 19:51:35 +02:00
parent 9d1e2c511c
commit 14c4fafd39
No known key found for this signature in database
GPG key ID: 5E2EF5A63E3718CC

View file

@ -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