diff options
| author | Donald Stufft <donald@stufft.io> | 2015-05-21 23:54:42 -0400 |
|---|---|---|
| committer | Donald Stufft <donald@stufft.io> | 2015-05-21 23:54:42 -0400 |
| commit | 0a0eaf26d88b2c40c3f84d56eedb849962113284 (patch) | |
| tree | ec0dc58286b1f3cdb1504b25dfcf703b8ec74041 /virtualenv.py | |
| parent | ec84ebf69c61cc58a887576fd4031a3ce9ddbb10 (diff) | |
| parent | 695221bffdfab68303d5a68f4aedbb7e7c8c83a3 (diff) | |
| download | virtualenv-0a0eaf26d88b2c40c3f84d56eedb849962113284.tar.gz | |
Merge pull request #755 from rbtcollins/issue-753
Issue #753: Don't trust cwd.
Diffstat (limited to 'virtualenv.py')
| -rwxr-xr-x | virtualenv.py | 6 |
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)] |
