Skip to content

Commit 8913a06

Browse files
fix config path for windows system (#3501)
Co-authored-by: Trawinski, Dariusz <[email protected]>
1 parent 782c845 commit 8913a06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

demos/common/export_models/export_model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import json
2121
import shutil
2222
import tempfile
23+
from pathlib import Path
2324

2425
def add_common_arguments(parser):
2526
parser.add_argument('--model_repository_path', required=False, default='models', help='Where the model should be exported to', dest='model_repository_path')
@@ -358,6 +359,7 @@ def get_models_max_context(tmpdirname, config_filename):
358359
return None
359360

360361
def add_servable_to_config(config_path, mediapipe_name, base_path):
362+
base_path = Path(base_path).as_posix()
361363
print(config_path, mediapipe_name, base_path)
362364
if not os.path.isfile(config_path):
363365
print("Creating new config file")

0 commit comments

Comments
 (0)