Skip to content

Commit

Permalink
Merge pull request #22 from bringauto/fix_protobuf_imports
Browse files Browse the repository at this point in the history
Fixed protobuf imports
  • Loading branch information
MarioIvancik authored Jul 8, 2024
2 parents 4ed4503 + 276b4d1 commit da10bea
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 22 deletions.
3 changes: 0 additions & 3 deletions external_server/command_waiting_thread.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import threading
from queue import Queue, Empty
import logging
import sys

sys.path.append("lib/fleet-protocol/protobuf/compiled/python")

import InternalProtocol_pb2 as internal_protocol
from external_server.structures import GeneralErrorCodes, EsErrorCodes
Expand Down
3 changes: 0 additions & 3 deletions external_server/external_server.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import logging
import time
import sys

sys.path.append("lib/fleet-protocol/protobuf/compiled/python")

import ExternalProtocol_pb2 as external_protocol
import InternalProtocol_pb2 as internal_protocol
Expand Down
4 changes: 0 additions & 4 deletions external_server/external_server_api_client.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import ctypes as ct
import threading
import sys

sys.path.append("lib/fleet-protocol/protobuf/compiled/python")

import ExternalProtocol_pb2 as external_protocol
import InternalProtocol_pb2 as internal_protocol
from external_server.utils import check_file_exists
from external_server.structures import (
Expand Down
6 changes: 0 additions & 6 deletions external_server/message_creator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import sys

from external_server.structures import Buffer

sys.path.append("lib/fleet-protocol/protobuf/compiled/python")

import ExternalProtocol_pb2 as external_protocol
import InternalProtocol_pb2 as internal_protocol

Expand Down
3 changes: 0 additions & 3 deletions external_server/utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import argparse
import os.path
import sys
import threading

sys.path.append("lib/fleet-protocol/protobuf/compiled/python")

import InternalProtocol_pb2 as internal_protocol


Expand Down
7 changes: 5 additions & 2 deletions external_server_main.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#!/usr/bin/env python3
import logging
import logging.handlers
import json
import sys
import os

from rich.logging import RichHandler

dir_path = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(dir_path, "./lib/fleet-protocol/protobuf/compiled/python"))

from external_server.utils import argparse_init
from external_server.external_server import ExternalServer
from external_server.config import Config, load_config, InvalidConfigError
from external_server.config import load_config, InvalidConfigError
from external_server import constants


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[project]
name = "external_server"
version = "1.1.9"
version = "1.1.10"

0 comments on commit da10bea

Please sign in to comment.