Skip to content

Commit

Permalink
Merge pull request pytest-dev#41 from jcfr/fix-virtualenv-installed-p…
Browse files Browse the repository at this point in the history
…ackage-on-windows

virtualenv/installed_packages: Add support for windows
  • Loading branch information
eeaston authored Dec 7, 2016
2 parents d73ffd6 + 0aa72e0 commit d9e296b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest-virtualenv/pytest_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def installed_packages(self, package_type=None):
res = {}
code = "from pkg_resources import working_set\n"\
"for i in working_set: print(i.project_name + ' ' + i.version + ' ' + i.location)"
lines = self.run('%s -c "%s"' % (self.python, code), capture=True).split('\n')
lines = self.run([self.python, "-c", code], capture=True).split('\n')
for line in [i.strip() for i in lines if i.strip()]:
name, version, location = line.split()
res[name] = PackageEntry(name, version, location)
Expand Down

0 comments on commit d9e296b

Please sign in to comment.