Skip to content

Commit 5e2f897

Browse files
committed
fixed initialisation of environment in Submitter
1 parent 761d97a commit 5e2f897

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pydra/engine/submitter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def __init__(
9999
**kwargs,
100100
):
101101

102+
from pydra.engine.environments import Native
103+
102104
if worker is None:
103105
worker = "debug"
104106

@@ -120,7 +122,7 @@ def __init__(
120122

121123
self.cache_dir = cache_dir
122124
self.cache_locations = cache_locations
123-
self.environment = environment
125+
self.environment = environment if environment is not None else Native()
124126
self.rerun = rerun
125127
self.loop = get_open_loop()
126128
self._own_loop = not self.loop.is_running()

pydra/engine/tests/test_singularity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def test_singularity_cmd_inputspec_copyfile_1(plugin, tmp_path):
375375
@shell.define
376376
class Singu(ShellDef["Singu.Outputs"]):
377377

378-
executable = ["sed", "-is", "'s/hello/hi/'"]
378+
executable = ["sed", "-is", "s/hello/hi/"]
379379

380380
orig_file: File = shell.arg(
381381
position=1,

0 commit comments

Comments
 (0)