Skip to content

Commit

Permalink
use getpass for username
Browse files Browse the repository at this point in the history
  • Loading branch information
colinthomas-z80 committed Aug 19, 2024
1 parent b75a3ae commit 2c18d6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parsl/executors/taskvine/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
high-throughput system for delegating Parsl tasks to thousands of remote machines
"""

import getpass
import hashlib
import inspect
import itertools
Expand Down Expand Up @@ -216,7 +217,7 @@ def __create_data_and_logging_dirs(self):

# Create directories for data and results
log_dir = os.path.join(run_dir, self.label)
tmp_dir = os.path.join('/tmp/', f'{self.label}-{os.getlogin()}')
tmp_dir = os.path.join('/tmp/', f'{self.label}-{getpass.getuser()}')
self._function_data_dir = os.path.join(tmp_dir, datetime.now().strftime('%Y%m%d%H%M%S%f'), "function_data")
os.makedirs(log_dir)
os.makedirs(self._function_data_dir)
Expand Down

0 comments on commit 2c18d6c

Please sign in to comment.