Skip to content

Commit 1df58a7

Browse files
committed
[HWORKS-1802] Exporting model on windows with directories in the model directory creates invalid upload path
1 parent 2429403 commit 1df58a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/hsml/engine/model_engine.py

Lines changed: 1 addition & 1 deletion
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)