mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Move import to top of file
This commit is contained in:
parent
6c3a74c5ac
commit
624c7eaf77
1 changed files with 1 additions and 1 deletions
|
@ -29,6 +29,7 @@ import re
|
|||
import yaml
|
||||
import collections
|
||||
import glob
|
||||
import psutil
|
||||
|
||||
from datetime import datetime
|
||||
from logging import FileHandler, getLogger, Formatter
|
||||
|
@ -408,7 +409,6 @@ class OperationLogger(object):
|
|||
|
||||
recent_operation_logs = sorted(glob.iglob("/var/log/yunohost/categories/operation/*.log"), key=os.path.getctime, reverse=True)[:20]
|
||||
|
||||
import psutil
|
||||
proc = psutil.Process().parent()
|
||||
while proc is not None:
|
||||
# We use proc.open_files() to list files opened / actively used by this proc
|
||||
|
|
Loading…
Add table
Reference in a new issue