Skip to content

Commit 88f3129

Browse files
authored
Update dump_env_file.py (#11)
1 parent 59f8569 commit 88f3129

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyrosettacluster/dump_env_file.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ def main(
3131
if (
3232
isinstance(input_file, str)
3333
and input_file.endswith((".pkl_pose", ".pkl_pose.bz2", ".b64_pose", ".b64_pose.bz2"))
34-
and pyrosetta_init_flags
3534
):
36-
pyrosetta.distributed.init(pyrosetta_init_flags)
35+
if pyrosetta_init_flags:
36+
pyrosetta.distributed.init(pyrosetta_init_flags)
37+
else:
38+
pyrosetta.distributed.init()
3739

3840
if (
3941
isinstance(scorefile, str)

0 commit comments

Comments
 (0)