@@ -569,40 +569,41 @@ def find_matching_mode(user_input):
569569 console .print (f"[green]✓ Updated { user_defines_path } [/green]" )
570570
571571 # Run gen_gpio_defaults.py script after updating user_defines.v
572+ # DISABLED: Removed by default due to file path issues
572573 # Look for caravel directory in common locations
573- caravel_paths = [
574- project_root / 'caravel' ,
575- project_root / 'dependencies' / 'caravel' ,
576- project_root .parent / 'caravel' , # If caravel is sibling to project
577- ]
578-
579- gen_gpio_script = None
580- for caravel_path in caravel_paths :
581- script_path = caravel_path / 'scripts' / 'gen_gpio_defaults.py'
582- if script_path .exists ():
583- gen_gpio_script = script_path
584- break
585-
586- if gen_gpio_script :
587- try :
588- console .print ("[cyan]Generating GPIO defaults for simulation...[/cyan]" )
589- result = subprocess .run (
590- [sys .executable , str (gen_gpio_script )],
591- cwd = str (project_root ),
592- capture_output = True ,
593- text = True ,
594- check = True
595- )
596- console .print (f"[green]✓ Generated GPIO defaults[/green]" )
597- except subprocess .CalledProcessError as e :
598- console .print (f"[yellow]Warning: Failed to run gen_gpio_defaults.py: { e } [/yellow]" )
599- if e .stderr :
600- console .print (f"[dim]{ e .stderr } [/dim]" )
601- except Exception as e :
602- console .print (f"[yellow]Warning: Error running gen_gpio_defaults.py: { e } [/yellow]" )
603- else :
604- console .print ("[dim]Note: gen_gpio_defaults.py not found. Caravel may not be installed yet.[/dim]" )
605- console .print ("[dim]Run 'cf setup' to install Caravel, or run the script manually after setup.[/dim]" )
574+ # caravel_paths = [
575+ # project_root / 'caravel',
576+ # project_root / 'dependencies' / 'caravel',
577+ # project_root.parent / 'caravel', # If caravel is sibling to project
578+ # ]
579+ #
580+ # gen_gpio_script = None
581+ # for caravel_path in caravel_paths:
582+ # script_path = caravel_path / 'scripts' / 'gen_gpio_defaults.py'
583+ # if script_path.exists():
584+ # gen_gpio_script = script_path
585+ # break
586+ #
587+ # if gen_gpio_script:
588+ # try:
589+ # console.print("[cyan]Generating GPIO defaults for simulation...[/cyan]")
590+ # result = subprocess.run(
591+ # [sys.executable, str(gen_gpio_script)],
592+ # cwd=str(project_root),
593+ # capture_output=True,
594+ # text=True,
595+ # check=True
596+ # )
597+ # console.print(f"[green]✓ Generated GPIO defaults[/green]")
598+ # except subprocess.CalledProcessError as e:
599+ # console.print(f"[yellow]Warning: Failed to run gen_gpio_defaults.py: {e}[/yellow]")
600+ # if e.stderr:
601+ # console.print(f"[dim]{e.stderr}[/dim]")
602+ # except Exception as e:
603+ # console.print(f"[yellow]Warning: Error running gen_gpio_defaults.py: {e}[/yellow]")
604+ # else:
605+ # console.print("[dim]Note: gen_gpio_defaults.py not found. Caravel may not be installed yet.[/dim]")
606+ # console.print("[dim]Run 'cf setup' to install Caravel, or run the script manually after setup.[/dim]")
606607 except Exception as e :
607608 console .print (f"[red]Error updating user_defines.v: { e } [/red]" )
608609
0 commit comments