Skip to content

Commit

Permalink
Please ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
nordlow committed Aug 1, 2024
1 parent ea20241 commit 9399e96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions benchmark
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ from timeit import default_timer as timer

from process_timer import ProcessTimer

import importlib

DEFAULT_PROGRAM_NAME = 'main'

SUPPORTED_OPERATIONS = ['Check', 'Compile', 'Build']
Expand Down Expand Up @@ -1941,9 +1943,10 @@ def main():

def install_missing_modules():
try:
import psutil
except ImportError:
importlib.import_module('psutil')
except ModuleNotFoundError:
print("Installing missing modules...")
import pip
pip.main(["install", "psutil"])
print("Missing modules installed successfully.")

Expand Down

0 comments on commit 9399e96

Please sign in to comment.