mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
add openpilot prefix to imports (#29498)
* add openpilot prefix to imports * more * more * fix docs * fix linter * bump submodules * fix patched tests * update dynamic imports * debug * Revert "debug" This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b. * fix pm test old-commit-hash: a9626f95b69af19306143fc4def02fb5769405d2
This commit is contained in:
@@ -10,11 +10,11 @@ import tempfile
|
||||
import requests
|
||||
import argparse
|
||||
|
||||
from common.basedir import BASEDIR
|
||||
from selfdrive.test.openpilotci import get_url
|
||||
from tools.lib.logreader import LogReader
|
||||
from tools.lib.route import Route, SegmentName
|
||||
from tools.lib.helpers import save_log
|
||||
from openpilot.common.basedir import BASEDIR
|
||||
from openpilot.selfdrive.test.openpilotci import get_url
|
||||
from openpilot.tools.lib.logreader import LogReader
|
||||
from openpilot.tools.lib.route import Route, SegmentName
|
||||
from openpilot.tools.lib.helpers import save_log
|
||||
from urllib.parse import urlparse, parse_qs
|
||||
|
||||
juggle_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
@@ -129,7 +129,7 @@ def juggle_route(route_or_segment_name, segment_count, qlog, can, layout, dbc=No
|
||||
if dbc is None:
|
||||
for cp in [m for m in all_data if m.which() == 'carParams']:
|
||||
try:
|
||||
DBC = __import__(f"selfdrive.car.{cp.carParams.carName}.values", fromlist=['DBC']).DBC
|
||||
DBC = __import__(f"openpilot.selfdrive.car.{cp.carParams.carName}.values", fromlist=['DBC']).DBC
|
||||
dbc = DBC[cp.carParams.carFingerprint]['pt']
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
@@ -6,9 +6,9 @@ import subprocess
|
||||
import time
|
||||
import unittest
|
||||
|
||||
from common.basedir import BASEDIR
|
||||
from common.timeout import Timeout
|
||||
from tools.plotjuggler.juggle import install
|
||||
from openpilot.common.basedir import BASEDIR
|
||||
from openpilot.common.timeout import Timeout
|
||||
from openpilot.tools.plotjuggler.juggle import install
|
||||
|
||||
PJ_DIR = os.path.join(BASEDIR, "tools/plotjuggler")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user