Skip to content

Commit

Permalink
Use os.path.normcase instead distutils.convert_path
Browse files Browse the repository at this point in the history
Distutils is deprecated in python3.12
https://docs.python.org/3.12/whatsnew/3.12.html#distutils
  • Loading branch information
przemyslaw-jakielaszek committed Mar 27, 2024
1 parent 6fe15da commit 0ea5658
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions yoti_python_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)

Expand Down

0 comments on commit 0ea5658

Please sign in to comment.