summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-12-12 11:06:54 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-12-12 11:06:54 +0000
commit8bde1a547157653ea83889fbcd3c481c02b6491e (patch)
tree6605630bd9e2cbadd6f90920229bbb481988c136 /numpy/distutils
parentbb0795556ccb9ff42b424297da9a0462b10d0d7d (diff)
downloadnumpy-8bde1a547157653ea83889fbcd3c481c02b6491e.tar.gz
BUG: fix escaping of pkgdir on windows.
Diffstat (limited to 'numpy/distutils')
-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))