We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6b6140 + 67b9459 commit bba0b43Copy full SHA for bba0b43
3 files changed
__init__.py
@@ -1,8 +0,0 @@
1
-#!/usr/bin/python
2
-# -*- coding: utf-8 -*-
3
-
4
-import os
5
-import sys
6
7
-sd = os.path.abspath(os.path.dirname(__file__))
8
-sys.path.append(sd)
core/__init__.py
template/server.py
@@ -1,6 +1,17 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
+import sys
+import os
+import pathlib
+
9
+root_path = pathlib.Path(os.path.abspath(__file__)).parent
10
+sys.path.append(str(root_path))
11
+working_path = pathlib.Path(root_path, 'drucker')
12
+sys.path.append(str(working_path))
13
14
15
from concurrent import futures
16
import grpc
17
import drucker_pb2_grpc
0 commit comments