Skip to content

Commit dc48d4e

Browse files
authored
[HWORKS-1802] Exporting model on windows with directories in the model directory creates invalid upload path (#243)
1 parent 2429403 commit dc48d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/hsml/engine/model_engine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def _upload_local_model(
217217
# we need to replace the local path prefix with the hdfs path prefix (i.e., /srv/hops/....../root with /Projects/.../)
218218
remote_base_path = root.replace(
219219
from_local_model_path, to_model_version_path
220-
)
220+
).replace(os.sep, "/")
221221
for d_name in dirs:
222222
self._engine.mkdir(remote_base_path + "/" + d_name)
223223
n_dirs += 1

0 commit comments

Comments
 (0)