Reconfigure imports to work with python packaging system.

This commit is contained in:
Piv
2019-09-23 22:41:54 +09:30
parent a39b53994e
commit 80c33d2b48
3 changed files with 3 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
from threading import Timer, Thread from threading import Timer, Thread
from gpiozero import Servo from gpiozero import Servo
import MotorControl.motorService_pb2 as motorService_pb2 from . import motorService_pb2
import MotorControl.motorService_pb2_grpc as motorService_pb2_grpc from . import motorService_pb2_grpc
from MotorControl.gpiozero.motor_session import Motor from MotorControl.gpiozero.motor_session import Motor

0
MotorControl/__init__.py Normal file
View File

View File

@@ -1,7 +1,7 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc import grpc
import motorService_pb2 as motorService__pb2 from . import motorService_pb2 as motorService__pb2
class CarControlStub(object): class CarControlStub(object):