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 1616import os
1717import imp
1818import site
19- import distutils . sysconfig
19+ import sysconfig
2020
2121
2222# Directories in which the standard library and installed packages may be located.
2323# Modules in these locations will be whitelisted:
2424PKGDIRS = [
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' ),
2929 site .getusersitepackages (),
3030]
3131PKGDIRS += site .getsitepackages ()
You can’t perform that action at this time.
0 commit comments