Skip to content

Commit b6b7823

Browse files
committed
Replace distutils.sysconfig with stdlib sysconfig in modulewatcher.
1 parent 9840228 commit b6b7823

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

labscript_utils/modulewatcher.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
import os
1717
import imp
1818
import 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:
2424
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'),
2929
site.getusersitepackages(),
3030
]
3131
PKGDIRS += site.getsitepackages()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy