Skip to content

Commit 3d656cd

Browse files
committed
Support Python 3.10's 2-digit minor version
1 parent f0a089a commit 3d656cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unit-tests/unit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ from getopt import getopt
99

1010
# Setup temporary sys.path() with our build dir
1111
(sysname, nodename, release, version, machine) = os.uname()
12-
pyver = sys.version[:3]
12+
pyver = '%i.%i' % sys.version_info[:2]
1313
sys.path.insert(0,'../build/lib.%s-%s-%s' % (sysname.lower(), machine, pyver))
1414

1515
root_user = (os.getuid() == 0 and True or False)

0 commit comments

Comments
 (0)