Fix path references in scripts after reorganization
Update 8 scripts to use Path(__file__).parent.parent as PROJECT_ROOT so they resolve data/, output/, and internet_cables/ relative to the project root rather than the caller's working directory. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -222,8 +222,8 @@ def parse_args():
|
||||
)
|
||||
parser.add_argument(
|
||||
"--output",
|
||||
default="data_center_map.html",
|
||||
help="Output HTML path (default: data_center_map.html)",
|
||||
default=str(Path(__file__).parent.parent / "output" / "data_center_map.html"),
|
||||
help="Output HTML path (default: output/data_center_map.html)",
|
||||
)
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user