Skip to content

Commit

Permalink
Gromacs interface understands "~" in path name to executable
Browse files Browse the repository at this point in the history
  • Loading branch information
ptmerz committed Mar 3, 2018
1 parent a6dbb47 commit d1836e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions physical_validation/util/gromacs_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def exe(self):

@exe.setter
def exe(self, exe):
# expand '~/bin' to '/home/user/bin'
exe = os.path.expanduser(exe)
if self._check_exe(exe=exe):
if os.path.dirname(exe):
exe = os.path.abspath(exe)
Expand Down

0 comments on commit d1836e7

Please sign in to comment.