Skip to content

Commit

Permalink
Don't use deprecated distutils module. (#6839)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastic committed Feb 20, 2023
1 parent f306332 commit 3b6d99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapscript/python/tests/timing/testing.py
Expand Up @@ -39,7 +39,7 @@

import os
import sys
import distutils.util
import sysconfig
import unittest

# define the path to mapserver test data
Expand All @@ -50,7 +50,7 @@
TEST_IMAGE = os.path.join(TESTS_PATH, 'test.png')

# Put local build directory on head of python path
platformdir = '-'.join((distutils.util.get_platform(),
platformdir = '-'.join((sysconfig.get_platform(),
'.'.join(map(str, sys.version_info[0:2]))))
sys.path.insert(0, os.path.join('build', 'lib.' + platformdir))

Expand Down

0 comments on commit 3b6d99c

Please sign in to comment.