From b81eae42d7ce16923fd7fd9a079328ddafe87766 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 7 Sep 2023 20:33:19 +0900 Subject: [PATCH] Add files via upload --- app/assets/py/apploader.py | 2 +- app/assets/py/apploader_test.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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__":