Skip to content

Commit 9c9dfdf

Browse files
committed
Change to use Path.mkdir
1 parent 0280123 commit 9c9dfdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/apps/ai_unetr_seg_app/unetr_seg_operator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
# limitations under the License.
1111

1212
import logging
13-
from os import makedirs
1413

1514
from numpy import uint8
1615

@@ -66,7 +65,7 @@ def compute(self, op_input: InputContext, op_output: OutputContext, context: Exe
6665
op_output_folder_name = DataPath("saved_images_folder")
6766
op_output.set(op_output_folder_name, "saved_images_folder")
6867
op_output_folder_path = op_output.get("saved_images_folder").path
69-
makedirs(op_output_folder_path, exist_ok=True)
68+
op_output_folder_path.mkdir(parents=True, exist_ok=True)
7069
print(f"Operator output folder path: {op_output_folder_path}")
7170

7271
# This operator gets an in-memory Image object, so a specialized ImageReader is needed.

0 commit comments

Comments
 (0)