Skip to content

Commit 594c25b

Browse files
authored
Merge pull request #1676 from Libensemble/feature/sim_base_dir
Set executor base dir to ensemble dir
2 parents 6eedfbe + 226f926 commit 594c25b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libensemble/worker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import logging
99
import logging.handlers
10+
import os
1011
import socket
1112
from itertools import count
1213
from pathlib import Path
@@ -115,6 +116,8 @@ def worker_main(
115116
# Set up and run worker
116117
worker = Worker(comm, dtypes, workerID, sim_specs, gen_specs, libE_specs)
117118
with LS.loc("workflow"):
119+
if Executor.executor is not None:
120+
Executor.executor.base_dir = os.getcwd()
118121
worker.run()
119122

120123
if libE_specs.get("profile"):

0 commit comments

Comments
 (0)