Skip to content

Commit

Permalink
Converted path to posixpath in python deployer (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
es1024 authored and dcrankshaw committed Nov 17, 2017
1 parent 07ac4ca commit c04c4c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clipper_admin/clipper_admin/deployers/python.py
@@ -1,6 +1,8 @@
from __future__ import print_function, with_statement, absolute_import

import logging
import os
import posixpath
import shutil
from ..version import __version__

Expand Down Expand Up @@ -163,6 +165,8 @@ def centered_predict(inputs):
"""

serialization_dir = save_python_function(name, func)
# Special handling for Windows, which uses backslash for path delimiting
serialization_dir = posixpath.join(*os.path.split(serialization_dir))
logger.info("Python closure saved")
# Deploy function
clipper_conn.build_and_deploy_model(name, version, input_type,
Expand Down

0 comments on commit c04c4c7

Please sign in to comment.