Skip to content

Commit

Permalink
Merge pull request #35 from Aquaveo/cwd-bug
Browse files Browse the repository at this point in the history
Version 0.5.3
  • Loading branch information
swainn authored Jan 9, 2020
2 parents 3eaf089 + 9e5a312 commit 4b87bde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
CondorPy
========
:condorpy: Python interface for high throughput computing with HTCondor
:Version: 0.5.2
:Version: 0.5.3
:Author: Scott Christensen
:Team: Tethys Platform
:Homepage: http://tethysplatform.org/condorpy/
Expand Down
3 changes: 2 additions & 1 deletion condorpy/htcondor_object_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def set_cwd(fn):
"""
def wrapped(self, *args, **kwargs):
log.info('Calling function: %s with args=%s', fn, args if args else [])
cwd = os.getcwd()
# Use the CONDORPY_HOME environment variable to force set_cwd to always change to the same directory
cwd = os.environ.get('CONDORPY_HOME', os.getcwd())
log.info('Saved cwd: %s', cwd)
os.chdir(self._cwd)
log.info('Changing working directory to: %s', self._cwd)
Expand Down

0 comments on commit 4b87bde

Please sign in to comment.