对tools进行了整理,Xmake也改为相对路径,在线 LiDAR-IMU 定位器实现
This commit is contained in:
1 parent
0602144ac5
commit
4502296915
70 files changed
+2652
-1298
No files matched your search
+241
-196
@@ -1,252 +1,297 @@
|
||||
#!/usr/bin/env python3
|
||||
"""可移植的环境探测(Python 版),和 `scripts/env_common.sh` 保持同一套规则。
|
||||
|
||||
规则(两边一致):
|
||||
|
||||
1. **一切都能被环境变量覆盖** —— 探测只提供合理默认值,不是唯一真相。
|
||||
2. **探测失败要吵** —— 宁可启动时报错,也别带着错路径跑到一半。
|
||||
3. **不写死发行版 / 版本 / 平台三元组** —— 换机器、换 ROS 版本、
|
||||
换 Gazebo 大版本、换迁移包日期,都不该需要改代码。
|
||||
|
||||
覆盖用的环境变量:
|
||||
|
||||
=============== ==========================================
|
||||
变量 作用
|
||||
=============== ==========================================
|
||||
ROS_SETUP 直接指定 setup.bash 全路径
|
||||
ROS_DISTRO ROS 发行版名(配合 /opt/ros/<名>/setup.bash)
|
||||
SENTRY_BIN_DIR xmake 产物目录
|
||||
GZ_BIN Gazebo 可执行文件
|
||||
GZ_FORCE_VERSION gz --force-version 的值
|
||||
SENTRY_FIELD_ROOT 场地迁移包根目录
|
||||
SENTRY_MAP_YAML 栅格图 yaml 全路径
|
||||
=============== ==========================================
|
||||
|
||||
用法::
|
||||
|
||||
import sys
|
||||
sys.path.insert(0, str(WS / 'tools'))
|
||||
import project_env
|
||||
bin_dir = project_env.find_bin_dir(WS)
|
||||
"""
|
||||
"""Shared environment discovery for the simulation launchers and tools."""
|
||||
|
||||
import argparse
|
||||
import math
|
||||
import os
|
||||
from pathlib import Path
|
||||
import re
|
||||
import shutil
|
||||
import signal
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
import tempfile
|
||||
import time
|
||||
|
||||
# xmake 会产出的可执行文件,用来反推产物目录。
|
||||
_KNOWN_BINARIES = ('self_filter', 'nav_client', 'patrol', 'odom_tf', 'field_localization_node')
|
||||
|
||||
# 系统 gz 的常见安装位置(按优先级)。
|
||||
WORKSPACE = Path(__file__).resolve().parents[1]
|
||||
_KNOWN_BINARIES = ('self_filter', 'nav_client', 'patrol', 'odom_tf', 'cmd_vel_relay',
|
||||
'field_localization_node', 'field_localization_record', 'field_localization_replay')
|
||||
_GZ_CANDIDATES = ('/usr/bin/gz', '/usr/local/bin/gz', '/opt/gz/bin/gz')
|
||||
_GZ_VERSION_TIMEOUT = 5
|
||||
_FIELD_PACKAGE = Path('src/guodong_sentry_sim')
|
||||
|
||||
|
||||
class ProbeError(RuntimeError):
|
||||
"""A required setting is missing or points to an unusable path."""
|
||||
|
||||
|
||||
def require_file(path, name):
|
||||
path = Path(path).absolute()
|
||||
if not path.is_file():
|
||||
raise ProbeError(f'{name} 必须指向普通文件: {path}')
|
||||
return path
|
||||
|
||||
|
||||
def require_directory(path, name):
|
||||
path = Path(path).absolute()
|
||||
if not path.is_dir():
|
||||
raise ProbeError(f'{name} 必须指向目录: {path}')
|
||||
return path
|
||||
|
||||
|
||||
def is_executable(path):
|
||||
return Path(path).is_file() and os.access(path, os.X_OK)
|
||||
|
||||
|
||||
def require_executable(path, name):
|
||||
path = Path(path).absolute()
|
||||
if not is_executable(path):
|
||||
raise ProbeError(f'{name} 必须指向可执行的普通文件: {path}')
|
||||
return path
|
||||
|
||||
|
||||
def find_ros_setup():
|
||||
"""返回要 source 的 ROS `setup.bash` 路径;找不到返回 None。
|
||||
|
||||
优先级:`ROS_SETUP` → `ROS_INSTALL_ROOT/setup.bash` →
|
||||
`/opt/ros/<ROS_DISTRO>/setup.bash` → `/opt/ros/*/setup.bash` 里版本号最大的一个。
|
||||
|
||||
已经 source 过(`AMENT_PREFIX_PATH` 非空)时返回 None —— 调用方不该重复 source,
|
||||
否则 PATH 会越叠越长。
|
||||
"""
|
||||
"""Return the ROS setup path, or None when ROS is already sourced."""
|
||||
explicit = os.environ.get('ROS_SETUP')
|
||||
setup = require_file(explicit, 'ROS_SETUP') if explicit else None
|
||||
if os.environ.get('AMENT_PREFIX_PATH') and shutil.which('ros2'):
|
||||
return None
|
||||
|
||||
explicit = os.environ.get('ROS_SETUP')
|
||||
if explicit:
|
||||
p = Path(explicit)
|
||||
return p if p.is_file() else None
|
||||
if setup is not None:
|
||||
return setup
|
||||
|
||||
root = os.environ.get('ROS_INSTALL_ROOT')
|
||||
if root and (Path(root) / 'setup.bash').is_file():
|
||||
return Path(root) / 'setup.bash'
|
||||
if root:
|
||||
setup = Path(root) / 'setup.bash'
|
||||
if setup.is_file():
|
||||
return setup.absolute()
|
||||
|
||||
distro = os.environ.get('ROS_DISTRO')
|
||||
if distro:
|
||||
p = Path('/opt/ros') / distro / 'setup.bash'
|
||||
if p.is_file():
|
||||
return p
|
||||
setup = Path('/opt/ros') / distro / 'setup.bash'
|
||||
if setup.is_file():
|
||||
return setup
|
||||
|
||||
found = sorted(Path('/opt/ros').glob('*/setup.bash'))
|
||||
if not found:
|
||||
return None
|
||||
# 版本号最大 —— `lyrical` > `kilted` > `jazzy` > `iron` > `humble` 这种名字
|
||||
# 排不出来,所以退化成"取最后一个",并在多于一个时提醒调用方。
|
||||
return found[-1]
|
||||
candidates = sorted(
|
||||
(p for p in Path('/opt/ros').glob('*/setup.bash') if p.is_file()),
|
||||
key=lambda p: ([int(part) if i % 2 else part for i, part in
|
||||
enumerate(re.split(r'([0-9]+)', p.parent.name))], p.parent.name),
|
||||
)
|
||||
if not candidates:
|
||||
raise ProbeError('找不到 ROS 2 setup.bash。请加载 ROS 环境或设置 ROS_SETUP。')
|
||||
if len(candidates) > 1:
|
||||
print(f'[env] 警告: 发现多个 ROS 安装,按目录名排序选择 {candidates[-1]}', file=sys.stderr)
|
||||
return candidates[-1]
|
||||
|
||||
|
||||
def ros_setup_candidates():
|
||||
"""列出机器上所有 ROS `setup.bash`,用于在多版本时给出提示。"""
|
||||
return sorted(Path('/opt/ros').glob('*/setup.bash'))
|
||||
def find_bin_dir(ws=WORKSPACE):
|
||||
"""Choose a single build directory without mixing targets from different builds."""
|
||||
for name in ('SENTRY_BIN_DIR', 'NAV_BIN_DIR'):
|
||||
if override := os.environ.get(name):
|
||||
return require_directory(override, name)
|
||||
|
||||
|
||||
def find_bin_dir(ws):
|
||||
"""返回 xmake 产物目录(含 `self_filter` / `nav_client` 等的那个)。
|
||||
|
||||
**现行布局是 `build/bin/`** —— `src/sentry_nav/xmake.lua` 里每个 target 都
|
||||
`set_targetdir("$(builddir)/bin")`,故意不用 xmake 默认的平台三元组,
|
||||
免得 `build/<平台>/<架构>/<模式>` 这种串被抄进文档后换机器就失效。
|
||||
|
||||
仍然兼容老布局(`build/*/*/{release,debug}`),因为别的 checkout 可能还没重建。
|
||||
"""
|
||||
env = os.environ.get('SENTRY_BIN_DIR') or os.environ.get('NAV_BIN_DIR')
|
||||
if env:
|
||||
return Path(env)
|
||||
|
||||
build = Path(ws) / 'build'
|
||||
|
||||
# ① 现行布局:build/bin/
|
||||
build = Path(ws).absolute() / 'build'
|
||||
unified = build / 'bin'
|
||||
if unified.is_dir() and any((unified / n).is_file() for n in _KNOWN_BINARIES):
|
||||
if any(is_executable(unified / name) for name in _KNOWN_BINARIES):
|
||||
return unified
|
||||
|
||||
# ② 老布局:build/<平台>/<架构>/<模式>/
|
||||
for mode in ('release', 'debug'):
|
||||
for d in sorted(build.glob(f'*/*/{mode}')):
|
||||
if any((d / n).is_file() for n in _KNOWN_BINARIES):
|
||||
return d
|
||||
|
||||
# ③ 还没编译过:返回现行布局的位置
|
||||
for candidate in sorted(build.glob(f'*/*/{mode}')):
|
||||
if any(is_executable(candidate / name) for name in _KNOWN_BINARIES):
|
||||
return candidate
|
||||
return unified
|
||||
|
||||
|
||||
def find_gz_bin():
|
||||
"""返回 gz 可执行文件路径;找不到返回 None。
|
||||
|
||||
为什么要挑:`source` 过 ROS 之后,`$PATH` 上的 `gz` 是 `gz_tools_vendor`
|
||||
里那个,带着 vendor 的 RUNPATH,会加载缺 cpu-lidar 插件的 vendor 版 gz-sim。
|
||||
所以系统安装的位置优先。
|
||||
"""
|
||||
env = os.environ.get('GZ_BIN')
|
||||
if env:
|
||||
p = Path(env)
|
||||
return p if os.access(p, os.X_OK) else None
|
||||
|
||||
for cand in _GZ_CANDIDATES:
|
||||
if os.access(cand, os.X_OK):
|
||||
return Path(cand)
|
||||
|
||||
which = shutil.which('gz')
|
||||
return Path(which) if which else None
|
||||
"""Prefer system Gazebo, validating an explicit override before any fallback."""
|
||||
if override := os.environ.get('GZ_BIN'):
|
||||
return require_executable(override, 'GZ_BIN')
|
||||
for path in _GZ_CANDIDATES:
|
||||
if is_executable(path):
|
||||
return Path(path)
|
||||
if path := shutil.which('gz'):
|
||||
return require_executable(path, 'gz')
|
||||
raise ProbeError('找不到 Gazebo 的 gz 可执行文件。请设置 GZ_BIN。')
|
||||
|
||||
|
||||
def gz_version_args():
|
||||
"""返回 `['--force-version', '<主版本>']`,取不到就返回 `[]`。
|
||||
def run_gz(gz, *args, timeout, partition=None):
|
||||
"""Run a Gazebo query in its own process group with a wall-clock deadline."""
|
||||
env = os.environ.copy()
|
||||
env.pop('LD_LIBRARY_PATH', None)
|
||||
if partition is not None:
|
||||
env['GZ_PARTITION'] = partition
|
||||
command = [str(gz), *args]
|
||||
# Files let us read results after a timeout even if a descendant still holds
|
||||
# an output descriptor. Only the process group started here is signalled.
|
||||
with tempfile.TemporaryFile() as stdout, tempfile.TemporaryFile() as stderr:
|
||||
process = subprocess.Popen(command, env=env, start_new_session=True,
|
||||
stdout=stdout, stderr=stderr)
|
||||
try:
|
||||
process.wait(timeout=timeout)
|
||||
except BaseException:
|
||||
try:
|
||||
os.killpg(process.pid, signal.SIGKILL)
|
||||
except ProcessLookupError:
|
||||
pass
|
||||
process.wait()
|
||||
raise
|
||||
stdout.seek(0)
|
||||
stderr.seek(0)
|
||||
return subprocess.CompletedProcess(command, process.returncode,
|
||||
stdout.read().decode(errors='replace'),
|
||||
stderr.read().decode(errors='replace'))
|
||||
|
||||
写死 10 的话,装了 gz 11 就跑不起来。`GZ_FORCE_VERSION` 可强制指定。
|
||||
"""
|
||||
forced = os.environ.get('GZ_FORCE_VERSION')
|
||||
if forced:
|
||||
return ['--force-version', str(forced)]
|
||||
|
||||
gz = find_gz_bin()
|
||||
def gz_version_args(gz=None):
|
||||
"""Return force-version arguments, or warn and let Gazebo choose its default."""
|
||||
if gz is None:
|
||||
return []
|
||||
gz = find_gz_bin()
|
||||
if forced := os.environ.get('GZ_FORCE_VERSION'):
|
||||
return ['--force-version', forced]
|
||||
|
||||
try:
|
||||
out = subprocess.run([str(gz), 'sim', '--version'],
|
||||
capture_output=True, text=True, timeout=15)
|
||||
except (OSError, subprocess.SubprocessError):
|
||||
return []
|
||||
|
||||
lines = (out.stdout or out.stderr or '').strip().splitlines()
|
||||
if not lines:
|
||||
return []
|
||||
m = re.match(r'\s*(\d+)', lines[0])
|
||||
return ['--force-version', m.group(1)] if m else []
|
||||
result = run_gz(gz, 'sim', '--version', timeout=_GZ_VERSION_TIMEOUT)
|
||||
if result.returncode:
|
||||
reason = f'退出码 {result.returncode}'
|
||||
else:
|
||||
version = re.match(r'^\s*([0-9]+)(?=\.|\s|$)', result.stdout.strip() or result.stderr.strip())
|
||||
if version:
|
||||
return ['--force-version', version[1]]
|
||||
reason = '无法解析版本'
|
||||
except subprocess.TimeoutExpired:
|
||||
reason = f'超时({_GZ_VERSION_TIMEOUT:g} 秒)'
|
||||
except OSError as error:
|
||||
reason = str(error)
|
||||
print(f'[env] 警告: {gz} sim --version {reason},使用 Gazebo 默认版本。'
|
||||
'可通过 GZ_FORCE_VERSION 指定主版本。', file=sys.stderr)
|
||||
return []
|
||||
|
||||
|
||||
def find_field_root(ws):
|
||||
"""返回场地迁移包根目录;找不到返回 None。
|
||||
def wait_gz_clock(gz, gazebo_pid=None):
|
||||
"""Wait for the selected Gazebo transport to advertise /clock."""
|
||||
raw_timeout = os.environ.get('BRIDGE_WAIT_TIMEOUT') or '120'
|
||||
try:
|
||||
timeout = float(raw_timeout)
|
||||
except ValueError:
|
||||
timeout = 0
|
||||
if not math.isfinite(timeout) or timeout <= 0:
|
||||
raise ProbeError(f'BRIDGE_WAIT_TIMEOUT 必须为正数: {raw_timeout}')
|
||||
|
||||
不写死 `RMUL2027_map_transfer_20261016_STEP_R1` —— 换一版迁移包日期就变了。
|
||||
找的是「含 `src/guodong_sentry_sim` 的那一层」。
|
||||
"""
|
||||
env = os.environ.get('SENTRY_FIELD_ROOT')
|
||||
if env:
|
||||
return Path(env)
|
||||
|
||||
ws = Path(ws)
|
||||
for p in sorted(ws.glob('field/*/src/guodong_sentry_sim')):
|
||||
if p.is_dir():
|
||||
return p.parent.parent
|
||||
|
||||
for p in sorted((Path.home() / 'Gazebo_projects').glob(
|
||||
'*map_transfer*/src/guodong_sentry_sim')):
|
||||
if p.is_dir():
|
||||
return p.parent.parent
|
||||
|
||||
return None
|
||||
deadline = time.monotonic() + timeout
|
||||
while (remaining := deadline - time.monotonic()) > 0:
|
||||
if gazebo_pid is not None:
|
||||
try:
|
||||
os.kill(gazebo_pid, 0)
|
||||
except ProcessLookupError as error:
|
||||
raise ProbeError('Gazebo 启动失败,进程已退出') from error
|
||||
try:
|
||||
# Listing topics waits for a full discovery cycle (over two seconds on this host).
|
||||
result = run_gz(gz, 'topic', '-e', '-t', '/clock', '-n', '1',
|
||||
timeout=min(2, remaining))
|
||||
if result.returncode == 0 and result.stdout.strip():
|
||||
return
|
||||
except subprocess.TimeoutExpired:
|
||||
pass
|
||||
time.sleep(max(0, min(1, deadline - time.monotonic())))
|
||||
raise ProbeError(
|
||||
f'等待 Gazebo /clock 超时({timeout:g} 秒),请检查 GZ_PARTITION='
|
||||
f'{os.environ.get("GZ_PARTITION") or "sentry"}')
|
||||
|
||||
|
||||
def find_map_yaml(field_root):
|
||||
"""返回栅格图 yaml 路径;找不到返回 None。优先 `rmul_2027.yaml`。"""
|
||||
env = os.environ.get('SENTRY_MAP_YAML')
|
||||
if env:
|
||||
return Path(env)
|
||||
def find_field_root(ws=WORKSPACE, *, explicit=None):
|
||||
if explicit:
|
||||
return require_directory(explicit, 'field_root')
|
||||
if override := os.environ.get('SENTRY_FIELD_ROOT'):
|
||||
return require_directory(override, 'SENTRY_FIELD_ROOT')
|
||||
for parent, pattern in ((Path(ws).absolute() / 'field', '*'),
|
||||
(Path.home() / 'Gazebo_projects', '*map_transfer*')):
|
||||
for candidate in sorted(parent.glob(pattern)):
|
||||
if (candidate / _FIELD_PACKAGE).is_dir():
|
||||
return candidate
|
||||
raise ProbeError('找不到场地迁移包。请设置 SENTRY_FIELD_ROOT。')
|
||||
|
||||
|
||||
def find_map_yaml(field_root=None, *, explicit=None, ws=WORKSPACE):
|
||||
if explicit:
|
||||
return require_file(explicit, 'map')
|
||||
if override := os.environ.get('SENTRY_MAP_YAML'):
|
||||
return require_file(override, 'SENTRY_MAP_YAML')
|
||||
if field_root is None:
|
||||
return None
|
||||
|
||||
maps = Path(field_root) / 'src' / 'guodong_sentry_sim' / 'maps'
|
||||
field_root = find_field_root(ws)
|
||||
maps = Path(field_root) / _FIELD_PACKAGE / 'maps'
|
||||
preferred = maps / 'rmul_2027' / 'rmul_2027.yaml'
|
||||
if preferred.is_file():
|
||||
return preferred
|
||||
|
||||
cands = sorted(maps.glob('*/*.yaml'))
|
||||
return cands[0] if cands else None
|
||||
candidates = sorted(p for p in maps.glob('*/*.yaml') if p.is_file())
|
||||
for candidate in candidates:
|
||||
if candidate.name == 'rmul_2027.yaml':
|
||||
return candidate
|
||||
if candidates:
|
||||
return candidates[0]
|
||||
raise ProbeError(f'{maps} 下找不到栅格图 YAML。请设置 SENTRY_MAP_YAML。')
|
||||
|
||||
|
||||
def report(ws):
|
||||
"""打印所有探测结果,排查路径问题时用。"""
|
||||
field_root = find_field_root(ws)
|
||||
setup = find_ros_setup()
|
||||
if setup:
|
||||
ros_line = str(setup)
|
||||
elif os.environ.get('AMENT_PREFIX_PATH'):
|
||||
ros_line = f'<已 source: {os.environ["AMENT_PREFIX_PATH"]}>'
|
||||
else:
|
||||
ros_line = '<找不到>'
|
||||
print(f' ROS setup : {ros_line}')
|
||||
print(f' BIN_DIR : {find_bin_dir(ws)}')
|
||||
print(f' GZ_BIN : {find_gz_bin()}')
|
||||
print(f' gz 版本参数 : {" ".join(gz_version_args()) or "<无>"}')
|
||||
bin_dir = find_bin_dir(ws)
|
||||
field_root = find_field_root(ws)
|
||||
map_yaml = find_map_yaml(field_root)
|
||||
gz = find_gz_bin()
|
||||
versions = ' '.join(gz_version_args(gz))
|
||||
print(f'仓库根: {ws}')
|
||||
print(f' ROS setup : {setup or "<已 source>"}')
|
||||
print(f' BIN_DIR : {bin_dir}')
|
||||
print(f' GZ_BIN : {gz}')
|
||||
print(f' gz 版本参数 : {versions or "<无>"}')
|
||||
print(f' FIELD_ROOT : {field_root}')
|
||||
print(f' MAP_YAML : {find_map_yaml(field_root)}')
|
||||
print(f' MAP_YAML : {map_yaml}')
|
||||
|
||||
|
||||
def main(argv=None):
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument('workspace', type=Path, nargs='?', default=WORKSPACE)
|
||||
queries = parser.add_mutually_exclusive_group()
|
||||
for query in ('bin-dir', 'field', 'map', 'gz', 'gz-version-args', 'ros-setup'):
|
||||
queries.add_argument(f'--{query}', dest='query', action='store_const', const=query)
|
||||
for query in ('gz-version-args-lines', 'wait-gz-clock'):
|
||||
queries.add_argument(f'--{query}', dest='query', action='store_const', const=query,
|
||||
help=argparse.SUPPRESS)
|
||||
parser.add_argument('--field-root', type=Path, help=argparse.SUPPRESS)
|
||||
parser.add_argument('--gazebo-pid', type=int, help=argparse.SUPPRESS)
|
||||
args = parser.parse_args(argv)
|
||||
if args.field_root is not None and args.query != 'map':
|
||||
parser.error('--field-root requires --map')
|
||||
if args.gazebo_pid is not None and (args.query != 'wait-gz-clock' or args.gazebo_pid <= 0):
|
||||
parser.error('--gazebo-pid requires --wait-gz-clock and a positive PID')
|
||||
|
||||
try:
|
||||
ws = require_directory(args.workspace, 'workspace')
|
||||
match args.query:
|
||||
case 'bin-dir':
|
||||
print(find_bin_dir(ws))
|
||||
case 'field':
|
||||
print(find_field_root(ws))
|
||||
case 'map':
|
||||
print(find_map_yaml(args.field_root, ws=ws))
|
||||
case 'gz':
|
||||
print(find_gz_bin())
|
||||
case 'gz-version-args' | 'gz-version-args-lines':
|
||||
separator = '\n' if args.query == 'gz-version-args-lines' else ' '
|
||||
versions = gz_version_args()
|
||||
if versions:
|
||||
print(separator.join(versions))
|
||||
elif args.query == 'gz-version-args':
|
||||
print()
|
||||
case 'ros-setup':
|
||||
print(find_ros_setup() or '')
|
||||
case 'wait-gz-clock':
|
||||
wait_gz_clock(find_gz_bin(), args.gazebo_pid)
|
||||
case None:
|
||||
report(ws)
|
||||
except (ProbeError, OSError) as error:
|
||||
print(f'[env] {error}', file=sys.stderr)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# 支持直接从命令行取单个值,方便写进文档当可移植的一行命令:
|
||||
# NAV=$(python3 tools/project_env.py --bin-dir)/nav_client
|
||||
# python3 tools/project_env.py --map / --field / --gz / --bin-dir
|
||||
argv = sys.argv[1:]
|
||||
ws_arg = str(Path(__file__).resolve().parents[1])
|
||||
if argv and Path(argv[0]).is_dir():
|
||||
ws_arg = argv.pop(0)
|
||||
|
||||
if argv:
|
||||
opt = argv[0]
|
||||
if opt == '--bin-dir':
|
||||
print(find_bin_dir(ws_arg))
|
||||
elif opt == '--field':
|
||||
print(find_field_root(ws_arg))
|
||||
elif opt == '--map':
|
||||
print(find_map_yaml(find_field_root(ws_arg)))
|
||||
elif opt == '--gz':
|
||||
print(find_gz_bin())
|
||||
elif opt == '--gz-version-args':
|
||||
print(' '.join(gz_version_args()))
|
||||
elif opt == '--ros-setup':
|
||||
print(find_ros_setup() or '')
|
||||
else:
|
||||
print(f'未知选项 {opt},可用:--bin-dir --field --map --gz '
|
||||
'--gz-version-args --ros-setup', file=sys.stderr)
|
||||
sys.exit(2)
|
||||
sys.exit(0)
|
||||
|
||||
print(f'仓库根: {ws_arg}')
|
||||
report(ws_arg)
|
||||
sys.exit(main())
|
||||
Reference in new issue
Block a user