summaryrefslogtreecommitdiff
path: root/virtualenv.py
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2015-05-21 23:54:42 -0400
committerDonald Stufft <donald@stufft.io>2015-05-21 23:54:42 -0400
commit0a0eaf26d88b2c40c3f84d56eedb849962113284 (patch)
treeec0dc58286b1f3cdb1504b25dfcf703b8ec74041 /virtualenv.py
parentec84ebf69c61cc58a887576fd4031a3ce9ddbb10 (diff)
parent695221bffdfab68303d5a68f4aedbb7e7c8c83a3 (diff)
downloadvirtualenv-0a0eaf26d88b2c40c3f84d56eedb849962113284.tar.gz
Merge pull request #755 from rbtcollins/issue-753
Issue #753: Don't trust cwd.
Diffstat (limited to 'virtualenv.py')
-rwxr-xr-xvirtualenv.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/virtualenv.py b/virtualenv.py
index 946883c..d959f74 100755
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -526,8 +526,7 @@ def _find_file(filename, dirs):
def file_search_dirs():
here = os.path.dirname(os.path.abspath(__file__))
- dirs = ['.', here,
- join(here, 'virtualenv_support')]
+ dirs = [here, join(here, 'virtualenv_support')]
if os.path.splitext(os.path.dirname(__file__))[0] != 'virtualenv':
# Probably some boot script; just in case virtualenv is installed...
try:
@@ -535,7 +534,8 @@ def file_search_dirs():
except ImportError:
pass
else:
- dirs.append(os.path.join(os.path.dirname(virtualenv.__file__), 'virtualenv_support'))
+ dirs.append(os.path.join(
+ os.path.dirname(virtualenv.__file__), 'virtualenv_support'))
return [d for d in dirs if os.path.isdir(d)]