Skip to content

Commit 6ef9dc2

Browse files
committed
Cache: Use absolute path for working directory
1 parent ac98c42 commit 6ef9dc2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

executorlib/standalone/cache/queue.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from typing import List, Optional
23

34
from pysqa import QueueAdapter
@@ -32,7 +33,7 @@ def execute_with_pysqa(
3233
submit_kwargs = {
3334
"command": " ".join(command),
3435
"dependency_list": [str(qid) for qid in task_dependent_lst],
35-
"working_directory": resource_dict["cwd"],
36+
"working_directory": os.path.abspath(resource_dict["cwd"]),
3637
}
3738
del resource_dict["cwd"]
3839
unsupported_keys = [

tests/test_cache_executor_pysqa_flux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class TestCacheExecutorPysqa(unittest.TestCase):
3434
def test_executor(self):
3535
with Executor(
3636
backend="pysqa_flux",
37-
resource_dict={"cores": 2, "cwd": os.path.abspath("cwd")},
37+
resource_dict={"cores": 2, "cwd": "exe_working_directory"},
3838
block_allocation=False,
3939
) as exe:
4040
cloudpickle_register(ind=1)

0 commit comments

Comments
 (0)