Skip to content
Snippets Groups Projects
Commit f7f71f63 authored by Nguyen Anh Quynh's avatar Nguyen Anh Quynh
Browse files

python: delay import distutils until really need that

parent 605d67ac
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ from .keystone_const import *
from ctypes import *
from platform import system
from os.path import split, join, dirname, exists
import distutils.sysconfig, sys
import sys
import inspect
......@@ -46,6 +46,7 @@ if _found == False:
if _found == False:
# last try: loading from python lib directory
import distutils.sysconfig
_lib_path = distutils.sysconfig.get_python_lib()
for _lib in _all_libs:
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment