File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -654,32 +654,6 @@ def find_docker_console():
654654 # raise Exception("No active console other than /dev/pts/0")
655655 return consoles
656656
657- def prepare_RA_code (code_path ):
658- f = open (code_path , "r" )
659- code = f .read ()
660- f .close ()
661-
662- # Make code backwards compatible
663- code = code .replace ("from GUI import GUI" , "import GUI" )
664- code = code .replace ("from HAL import HAL" , "import HAL" )
665-
666- # Create executable app
667- errors = self .linter .evaluate_code (code , self .ros_version )
668- if errors == "" :
669-
670- # code = self.add_frequency_control(code)
671- f = open (code_path , "w" )
672- f .write (code )
673- f .close ()
674-
675- else :
676- console_path = find_docker_console ()
677- for i in console_path :
678- with open (i , "w" ) as console :
679- console .write (errors + "\n \n " )
680-
681- raise Exception (errors )
682-
683657 # Kill already running code
684658 try :
685659 proc = psutil .Process (self .application_process .pid )
You can’t perform that action at this time.
0 commit comments