Skip to content

Commit

Permalink
Not assuming PYTHONPATH is in "env"
Browse files Browse the repository at this point in the history
  • Loading branch information
mwatts15 committed Aug 9, 2020
1 parent cc204e2 commit 6335320
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion owmeta_core/bundle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ def install(self, descriptor, progress_reporter=None):
Raises
------
TargetIsNotEmpty
.TargetIsNotEmpty
Thrown when the target directory for installation is not empty.
'''
# Create the staging directory in the base directory to reduce the chance of
Expand Down
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ def sh(self, *command, **kwargs):
if not command:
return None
env = dict(os.environ)
env['PYTHONPATH'] = self.testdir + os.pathsep + env['PYTHONPATH']
env['PYTHONPATH'] = self.testdir + ((os.pathsep + env['PYTHONPATH'])
if 'PYTHONPATH' in env
else '')
env['HOME'] = self.test_homedir
env.update(kwargs.pop('env', {}))
outputs = []
Expand Down

0 comments on commit 6335320

Please sign in to comment.