File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 16
16
import os
17
17
import imp
18
18
import site
19
- import distutils . sysconfig
19
+ import sysconfig
20
20
21
21
22
22
# Directories in which the standard library and installed packages may be located.
23
23
# Modules in these locations will be whitelisted:
24
24
PKGDIRS = [
25
- distutils . sysconfig .get_python_lib ( plat_specific = True , standard_lib = True ),
26
- distutils . sysconfig .get_python_lib ( plat_specific = True , standard_lib = False ),
27
- distutils . sysconfig .get_python_lib ( plat_specific = False , standard_lib = True ),
28
- distutils . sysconfig .get_python_lib ( plat_specific = False , standard_lib = False ),
25
+ sysconfig .get_path ( 'platstdlib' ),
26
+ sysconfig .get_path ( 'platlib' ),
27
+ sysconfig .get_path ( 'stdlib' ),
28
+ sysconfig .get_path ( 'purelib' ),
29
29
site .getusersitepackages (),
30
30
]
31
31
PKGDIRS += site .getsitepackages ()
You can’t perform that action at this time.
0 commit comments