summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-07 19:08:00 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-07 19:08:00 -0500
commit02a1d6d49295b59618e315ec737c404f44d3d51b (patch)
tree9f8e12f1156fc3a8a8621d881c6a1232cfd680df
parentaa4bc11418652db062f05e00916d8bbe7a8ba263 (diff)
downloadpytest-runner-02a1d6d49295b59618e315ec737c404f44d3d51b.tar.gz
Should have been the function, no the string reference.2.2.1
-rw-r--r--ptr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ptr.py b/ptr.py
index c98981b..eefb82f 100644
--- a/ptr.py
+++ b/ptr.py
@@ -74,7 +74,7 @@ class PyTest(orig.test):
opts['allow_hosts'] = ('test', self.allow_hosts)
if self.index_url:
opts['index_url'] = ('test', self.index_url)
- install_dir_func = getattr(dist, 'get_egg_cache_dir', _os.curdir)
+ install_dir_func = getattr(dist, 'get_egg_cache_dir', _os.getcwd)
install_dir = install_dir_func()
cmd = easy_install(
dist, args=["x"], install_dir=install_dir, exclude_scripts=True,