From f958a620713414c072b3ed0aa4953d0329e1fedc Mon Sep 17 00:00:00 2001 From: Abinash Singh Date: Sat, 7 Sep 2024 22:33:02 +0530 Subject: Removed distutils dependency shutil can be used in place of distutils .--- src/projManagement/Validation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py index 23a66416..5f239163 100644 --- a/src/projManagement/Validation.py +++ b/src/projManagement/Validation.py @@ -19,7 +19,7 @@ import os import re -import distutils.spawn +import shutil class Validation: @@ -170,7 +170,7 @@ class Validation: def validateTool(self, toolName): """This function check if tool is present in the system.""" - return distutils.spawn.find_executable(toolName) is not None + return shutil.which(toolName) is not None def validateSubcir(self, projDir, fileName): """ -- cgit