summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Einhorn <moiein2000@gmail.com>2014-08-21 19:18:52 -0400
committerMatthew Einhorn <moiein2000@gmail.com>2014-08-21 19:18:52 -0400
commit56e427fbd8ce7b572582345ceabe43a2c7331b1a (patch)
treec67833df860421361a4f26c9931f400c788aa2ef
parentbb8c7428ab40dde4af92e696ff518e82e214cd24 (diff)
downloadpip-56e427fbd8ce7b572582345ceabe43a2c7331b1a.tar.gz
Replaces spaces in username.
-rw-r--r--pip/locations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pip/locations.py b/pip/locations.py
index 1d4026516..4d5d872f3 100644
--- a/pip/locations.py
+++ b/pip/locations.py
@@ -62,7 +62,7 @@ def __get_username():
def _get_build_prefix():
""" Returns a safe build_prefix """
path = os.path.join(tempfile.gettempdir(), 'pip_build_%s' %
- __get_username())
+ __get_username().replace(' ', '_'))
if sys.platform == 'win32':
""" on windows(tested on 7) temp dirs are isolated """
return path