mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-29 22:47:21 +00:00
config-tools: remove unused package and add nosec to subprocess
The subprocess module is needed for calling package from python script. Add #nosec for subprocess module importing. Tracked-On: #6342 Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
parent
dc77ef9e52
commit
c10ac227cc
@ -6,7 +6,8 @@
|
||||
"""
|
||||
|
||||
import logging
|
||||
import os, sys, subprocess, argparse, re, shutil
|
||||
import subprocess # nosec
|
||||
import os, sys, argparse, re, shutil
|
||||
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'board_inspector'))
|
||||
import lxml.etree
|
||||
from acpi_const import *
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
import sys
|
||||
import enum
|
||||
import subprocess
|
||||
import board_cfg_lib
|
||||
import common
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
import sys, os
|
||||
import logging
|
||||
import subprocess
|
||||
import subprocess # nosec
|
||||
import lxml.etree
|
||||
import argparse
|
||||
from importlib import import_module
|
||||
|
@ -6,7 +6,7 @@
|
||||
"""Base classes and infrastructure for CPUID and MSR decoding"""
|
||||
|
||||
from __future__ import print_function
|
||||
import subprocess
|
||||
import subprocess # nosec
|
||||
import re
|
||||
import functools
|
||||
import inspect
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
import subprocess # nosec
|
||||
import shutil
|
||||
from collections import defaultdict
|
||||
import dmar
|
||||
|
@ -7,7 +7,7 @@ import os
|
||||
import sys
|
||||
import shutil
|
||||
import argparse
|
||||
import subprocess
|
||||
import subprocess # nosec
|
||||
import pci_dev
|
||||
import dmi
|
||||
import acpi
|
||||
|
@ -4,7 +4,6 @@
|
||||
#
|
||||
|
||||
import parser_lib
|
||||
import subprocess
|
||||
|
||||
MEM_PATH = ['/proc/iomem', '/proc/meminfo']
|
||||
TTY_PATH = '/sys/class/tty/'
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import subprocess # nosec
|
||||
|
||||
BIOS_INFO_KEY = ['BIOS Information', 'Vendor:', 'Version:', 'Release Date:', 'BIOS Revision:']
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
|
||||
import sys
|
||||
import subprocess
|
||||
import subprocess # nosec
|
||||
import board_cfg_lib, scenario_cfg_lib
|
||||
import hv_cfg_lib
|
||||
import common
|
||||
|
@ -7,7 +7,7 @@ import os
|
||||
import sys
|
||||
import getopt
|
||||
import shutil
|
||||
import subprocess
|
||||
import subprocess # nosec
|
||||
import xml.etree.ElementTree as ET
|
||||
import re
|
||||
import lxml
|
||||
|
Loading…
Reference in New Issue
Block a user