Skip to content

Commit d9e296b

Browse files
authored
Merge pull request pytest-dev#41 from jcfr/fix-virtualenv-installed-package-on-windows
virtualenv/installed_packages: Add support for windows
2 parents d73ffd6 + 0aa72e0 commit d9e296b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest-virtualenv/pytest_virtualenv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def installed_packages(self, package_type=None):
214214
res = {}
215215
code = "from pkg_resources import working_set\n"\
216216
"for i in working_set: print(i.project_name + ' ' + i.version + ' ' + i.location)"
217-
lines = self.run('%s -c "%s"' % (self.python, code), capture=True).split('\n')
217+
lines = self.run([self.python, "-c", code], capture=True).split('\n')
218218
for line in [i.strip() for i in lines if i.strip()]:
219219
name, version, location = line.split()
220220
res[name] = PackageEntry(name, version, location)

0 commit comments

Comments
 (0)