summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/npy_pkg_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/npy_pkg_config.py b/numpy/distutils/npy_pkg_config.py
index 70eac884d..89c20c64b 100644
--- a/numpy/distutils/npy_pkg_config.py
+++ b/numpy/distutils/npy_pkg_config.py
@@ -329,7 +329,7 @@ def _read_config_imp(filenames, dirs=None):
(pkgname, meta["name"]))
mod = sys.modules[pkgname]
- vars["pkgdir"] = os.path.dirname(mod.__file__)
+ vars["pkgdir"] = _escape_backslash(os.path.dirname(mod.__file__))
return LibraryInfo(name=meta["name"], description=meta["description"],
version=meta["version"], sections=sections, vars=VariableSet(vars))