Skip to content

Commit 20f81b7

Browse files
Update job_spec.py
1 parent 331d446 commit 20f81b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/psij/job_spec.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@ def __init__(self, name: Optional[str] = None, executable: Optional[str] = None,
100100
self._name = name
101101
self.executable = executable
102102
self.arguments = arguments
103-
self.directory = directory
103+
self.directory = Path(directory) if directory is not None else None
104104
self.inherit_environment = inherit_environment
105105
self.environment = environment
106-
self.stdin_path = stdin_path
107-
self.stdout_path = stdout_path
108-
self.stderr_path = stderr_path
106+
self.stdin_path = Path(stdin_path) if stdin_path is not None else None
107+
self.stdout_path = Path(stdout_path) if stdout_path is not None else None
108+
self.stderr_path = Path(stderr_path) if stderr_path is not None else None
109109
self.resources = resources
110110
self.attributes = attributes if attributes is not None else JobAttributes()
111-
self.pre_launch = pre_launch
112-
self.post_launch = post_launch
111+
self.pre_launch = Path(pre_launch) if pre_launch is not None else None
112+
self.post_launch = Path(post_launch) if post_launch is not None else None
113113
self.launcher = launcher
114114

115115
# TODO: `resources` is of type `ResourceSpec`, not `ResourceSpecV1`. An

0 commit comments

Comments
 (0)