Skip to content

Commit c8d7dfb

Browse files
committed
Cleanup python code
1 parent b345b47 commit c8d7dfb

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed
File renamed without changes.

src/main/python/grpc_info.py renamed to python/grpc_info.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import grpc
2+
import sys
3+
4+
sys.path.append('../build/generated/source/python')
25

36
import helloworld_pb2_grpc
47

src/main/python/helloworld_client.py renamed to python/helloworld_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import logging
88
import sys
99

10-
sys.path.append('build/generated/source/python')
10+
sys.path.append('../build/generated/source/python')
1111

1212
import helloworld_pb2
1313
import grpc_info

src/main/python/hellowworld_server.py renamed to python/hellowworld_server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4+
import grpc
45
import logging
56
import sys
67
import time
78
from concurrent import futures
89

9-
import grpc
10-
11-
sys.path.append('build/generated/source/python')
10+
sys.path.append('../build/generated/source/python')
1211

1312
import helloworld_pb2
1413
import helloworld_pb2_grpc

0 commit comments

Comments
 (0)