Skip to content

Commit

Permalink
fix: 修复目录顺序错误
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed Jan 26, 2024
1 parent 17dd821 commit a22e349
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
tools ={
1: {'tip':'一键安装(推荐):ROS(支持ROS/ROS2,树莓派Jetson)', 'type':INSTALL_ROS, 'tool':url_prefix+'tools/tool_install_ros.py' ,'dep':[4,5] },
2: {'tip':'一键安装:github桌面版(小鱼常用的github客户端)', 'type':INSTALL_SOFTWARE, 'tool':url_prefix+'tools/tool_install_github_desktop.py' ,'dep':[] },
4: {'tip':'一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)', 'type':INSTALL_ROS, 'tool':url_prefix+'tools/tool_config_rosenv.py' ,'dep':[] },
3: {'tip':'一键安装:rosdep(小鱼的rosdepc,又快又好用)', 'type':INSTALL_ROS, 'tool':url_prefix+'tools/tool_config_rosdep.py' ,'dep':[] },
4: {'tip':'一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)', 'type':INSTALL_ROS, 'tool':url_prefix+'tools/tool_config_rosenv.py' ,'dep':[] },
5: {'tip':'一键配置:系统源(更换系统源,支持全版本Ubuntu系统)', 'type':CONFIG_TOOL, 'tool':url_prefix+'tools/tool_config_system_source.py' ,'dep':[1] },
6: {'tip':'一键安装:NodeJS环境', 'type':INSTALL_SOFTWARE, 'tool':url_prefix+'tools/tool_install_nodejs.py' ,'dep':[] },
7: {'tip':'一键安装:VsCode开发工具', 'type':INSTALL_SOFTWARE, 'tool':url_prefix+'tools/tool_install_vscode.py' ,'dep':[] },
8: {'tip':'一键安装:Docker', 'type':INSTALL_SOFTWARE, 'tool':url_prefix+'tools/tool_install_docker.py' ,'dep':[] },
9: {'tip':'一键安装:Cartographer(18 20测试通过,16未测. updateTime 20240125)', 'type':INSTALL_ROS, 'tool':url_prefix+'tools/tool_install_cartographer.py' ,'dep':[3] },
10: {'tip':'一键安装:微信(可以在Linux上使用的微信)', 'type':INSTALL_SOFTWARE, 'tool':url_prefix+'tools/tool_install_wechat.py' ,'dep':[8] },
21: {'tip':'一键安装:ROS Docker版(支持所有版本ROS/ROS2)', 'type':INSTALL_ROS, 'tool':url_prefix+'tools/tool_install_ros_with_docker.py' ,'dep':[7,8] },
11: {'tip':'一键安装:ROS Docker版(支持所有版本ROS/ROS2)', 'type':INSTALL_ROS, 'tool':url_prefix+'tools/tool_install_ros_with_docker.py' ,'dep':[7,8] },
12: {'tip':'一键安装:PlateformIO MicroROS开发环境(支持Fishbot)', 'type':INSTALL_SOFTWARE, 'tool':url_prefix+'tools/tool_install_micros_fishbot_env.py' ,'dep':[] },
13: {'tip':'一键配置:python国内源','type':CONFIG_TOOL,'tool':url_prefix+'tools/tool_config_python_source.py' ,'dep':[] },
14: {'tip':'一键安装:科学上网代理工具','type':INSTALL_SOFTWARE,'tool':url_prefix+'tools/tool_install_proxy_tool.py' ,'dep':[8] },
Expand Down
7 changes: 3 additions & 4 deletions tools/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from calendar import c
import os
import re
Expand Down Expand Up @@ -1011,8 +1009,9 @@ def __choose(data,tips,array,categories):
# 打印不同类型工具的分类结果
for tool_type, tools_list in dic.items():
PrintUtils.print_delay("{}:".format(categories[tool_type]),0.005)
for tool_id,tool_info in tools_list.items():
PrintUtils.print_delay(" [{}]:{}".format(tool_id,tool_info['tip']),0.005)
sortkeys = sorted(tools_list.keys())
for tool_id in sortkeys:
PrintUtils.print_delay(" [{}]:{}".format(tool_id,tools_list[tool_id]['tip']),0.005)
tool_ids.append(tool_id)
print()
PrintUtils.print_delay("[0]:quit\n",0.005)
Expand Down

0 comments on commit a22e349

Please sign in to comment.