diff --git a/app/assets/py/apploader.py b/app/assets/py/apploader.py index e0c7960..e9c532c 100644 --- a/app/assets/py/apploader.py +++ b/app/assets/py/apploader.py @@ -10,7 +10,7 @@ import win32com import win32com.client import pythoncom -sys.path.insert(0, '') +sys.path.insert(0, os.path.dirname(__file__)) from concurrent import futures import logging diff --git a/app/assets/py/apploader_test.py b/app/assets/py/apploader_test.py index 4c12000..e46fe29 100644 --- a/app/assets/py/apploader_test.py +++ b/app/assets/py/apploader_test.py @@ -6,8 +6,9 @@ from __future__ import print_function +import os import sys -sys.path.insert(0, '') +sys.path.insert(0, os.path.dirname(__file__)) from concurrent import futures import logging @@ -19,7 +20,7 @@ import WelsonAppLoader_pb2_grpc def run(): with grpc.insecure_channel("localhost:50051") as channel: stub = WelsonAppLoader_pb2_grpc.WelsonAppLoaderStub(channel) - response = stub.Run(WelsonAppLoader_pb2.AppRequest(appName="helloworld")) + response = stub.Run(WelsonAppLoader_pb2.AppRequest(appName="extramath-test")) print("Response: " + response.responseText) if __name__ == "__main__":