Skip to content

Commit

Permalink
Merge pull request #35 from pyiron/remote_get_user
Browse files Browse the repository at this point in the history
Fix _get_user() for remote jobs
  • Loading branch information
jan-janssen authored Aug 21, 2020
2 parents a2c9215 + da6de72 commit e2bc133
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pysqa/utils/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@ def _transfer_data_to_remote(self, working_directory):
self._create_remote_dir(directory=new_dir_list)
self._transfer_files(file_dict=file_dict, sftp=None, transfer_back=False)

def _get_user(self):
"""
Returns:
str:
"""
return self._ssh_username

@staticmethod
def _get_file_transfer(file, local_dir, remote_dir):
return os.path.abspath(os.path.join(remote_dir, os.path.relpath(file, local_dir)))

0 comments on commit e2bc133

Please sign in to comment.