From 9d7773c8542eaee1e88549e241bd9945db98064c Mon Sep 17 00:00:00 2001 From: Jiawei Wang Date: Sat, 5 Dec 2020 12:49:34 +0800 Subject: [PATCH] Merge pull request #844 from PaddlePaddle/wangjiawei04-patch-2 support Windows --- python/paddle_serving_server/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle_serving_server/__init__.py b/python/paddle_serving_server/__init__.py index ad64e978..30f4583a 100644 --- a/python/paddle_serving_server/__init__.py +++ b/python/paddle_serving_server/__init__.py @@ -23,13 +23,13 @@ import paddle_serving_server as paddle_serving_server from .version import serving_server_version from contextlib import closing import collections -import fcntl - import shutil import numpy as np import grpc from .proto import multi_lang_general_model_service_pb2 import sys +if sys.platform.startswith('win') is False: + import fcntl sys.path.append( os.path.join(os.path.abspath(os.path.dirname(__file__)), 'proto')) from .proto import multi_lang_general_model_service_pb2_grpc -- GitLab