Skip to content

Commit

Permalink
fixup otaclient.__main__
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Oct 19, 2024
1 parent 612d71d commit be40bbc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 88 deletions.
6 changes: 5 additions & 1 deletion src/otaclient/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
# limitations under the License.


from otaclient.main import main
from otaclient.log_setting import configure_logging

configure_logging()

if __name__ == "__main__":
from otaclient.grpc.main import main

main()
3 changes: 1 addition & 2 deletions src/otaclient/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
from typing import ClassVar

from _otaclient_version import __version__

from otaclient.configs.ecu_info import ecu_info
from otaclient.configs.cfg import ecu_info

#
# ------ OTA status enums definitions ------ #
Expand Down
2 changes: 1 addition & 1 deletion src/otaclient/log_setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import requests

from otaclient.app.configs import config as cfg
from otaclient.app.configs import ecu_info, proxy_info
from otaclient.configs.cfg import ecu_info, proxy_info


class _LogTeeHandler(logging.Handler):
Expand Down
84 changes: 0 additions & 84 deletions src/otaclient/main.py

This file was deleted.

0 comments on commit be40bbc

Please sign in to comment.