File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ async def reconnect_hub():
262262 return hub
263263
264264 response_options = [
265+ "Change Target File" ,
265266 "Recompile and Run" ,
266267 "Recompile and Download" ,
267268 "Exit" ,
@@ -292,8 +293,18 @@ async def reconnect_hub():
292293 )
293294 with _get_script_path (args .file ) as script_path :
294295 if response == response_options [0 ]:
295- await hub .run (script_path , wait = True )
296+ args .file = os .path .abspath (
297+ await hub .race_disconnect (
298+ hub .race_power_button_press (
299+ questionary .path (
300+ "What file would you like to use?"
301+ ).ask_async ()
302+ )
303+ )
304+ )
296305 elif response == response_options [1 ]:
306+ await hub .run (script_path , wait = True )
307+ elif response == response_options [2 ]:
297308 await hub .download (script_path )
298309 else :
299310 return
You can’t perform that action at this time.
0 commit comments