From 0ea565831e01b093221d3f1a4a3c372a729be989 Mon Sep 17 00:00:00 2001 From: "przemyslaw.jakielaszek" Date: Wed, 27 Mar 2024 16:07:40 +0100 Subject: [PATCH] Use os.path.normcase instead distutils.convert_path Distutils is deprecated in python3.12 https://docs.python.org/3.12/whatsnew/3.12.html#distutils --- yoti_python_sdk/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yoti_python_sdk/__init__.py b/yoti_python_sdk/__init__.py index a33747d5..10670cfc 100644 --- a/yoti_python_sdk/__init__.py +++ b/yoti_python_sdk/__init__.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- import os -from distutils.util import convert_path from os import environ from yoti_python_sdk.client import Client @@ -17,7 +16,7 @@ directory_name = os.path.dirname(__file__) version_path = os.path.join(directory_name, "version.py") -ver_path = convert_path(version_path) +ver_path = os.path.normcase(version_path) with open(ver_path) as ver_file: exec(ver_file.read(), main_ns)