From f74108b1d615fa3d08bb3fc3ab898f559c1f2c6b Mon Sep 17 00:00:00 2001 From: Jorge Capona Date: Fri, 2 Aug 2024 18:20:14 -0400 Subject: [PATCH] Install rover controller script separately (#472) --- debian/pt-os-web-portal.install | 1 + .../{__main__.py => pt-os-web-portal-rover-controller} | 1 + setup.cfg | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 debian/pt-os-web-portal.install rename pt_os_web_portal/rover_controller/{__main__.py => pt-os-web-portal-rover-controller} (94%) mode change 100644 => 100755 diff --git a/debian/pt-os-web-portal.install b/debian/pt-os-web-portal.install new file mode 100644 index 00000000..76ea8674 --- /dev/null +++ b/debian/pt-os-web-portal.install @@ -0,0 +1 @@ +pt_os_web_portal/rover_controller/pt-os-web-portal-rover-controller /usr/bin/ diff --git a/pt_os_web_portal/rover_controller/__main__.py b/pt_os_web_portal/rover_controller/pt-os-web-portal-rover-controller old mode 100644 new mode 100755 similarity index 94% rename from pt_os_web_portal/rover_controller/__main__.py rename to pt_os_web_portal/rover_controller/pt-os-web-portal-rover-controller index 3c9c1ecb..2dabc179 --- a/pt_os_web_portal/rover_controller/__main__.py +++ b/pt_os_web_portal/rover_controller/pt-os-web-portal-rover-controller @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import click from pitop.camera import Camera from pitop.labs import RoverWebController diff --git a/setup.cfg b/setup.cfg index cae88b07..78a59653 100644 --- a/setup.cfg +++ b/setup.cfg @@ -53,7 +53,7 @@ include_package_data = True console_scripts = pt-os-web-portal=pt_os_web_portal.__main__:main pt-os-web-portal-frontend=pt_os_web_portal.app_window.__main__:main - pt-os-web-portal-rover-controller=pt_os_web_portal.rover_controller.__main__:main + ; pt-os-web-portal-rover-controller=pt_os_web_portal.rover_controller.__main__:main pt-os-web-portal-vnc-advanced-wifi=pt_os_web_portal.backend.helpers.vnc_advanced_wifi_gui:main ; Entrypoint for miniscreen onboarding ;