manager runs on Mac, and other openpilot for PC fixes (#1037)

* use the openpilot/persist directory on PC

* manager runs on mac

* sim runs w/o carla

* fix params location in test

* that rmtree can fail and it's okay

* refactor params clear functionality

* set PARAMS_PATH
This commit is contained in:
George Hotz
2020-02-02 12:15:02 -08:00
committed by GitHub
parent 0470b25071
commit c42e2ecc50
15 changed files with 72 additions and 36 deletions
+2
View File
@@ -92,6 +92,8 @@ def parse_service_call_bytes(ret):
def get_network_type(NetworkType):
wifi_check = parse_service_call_string(service_call(["connectivity", "2"]))
if wifi_check is None:
return NetworkType.none
if 'WIFI' in wifi_check:
return NetworkType.wifi
else: