| |
| from pathlib import Path |
|
|
| |
| file_path = Path(r"C:\Users\LENOVO\Desktop\Roger-Ultimate\models\anomaly-detection\src\components\data_transformation.py") |
|
|
| print("File:", file_path) |
| print() |
| print("1 up (.parent):", file_path.parent) |
| print("2 up:", file_path.parent.parent) |
| print("3 up:", file_path.parent.parent.parent) |
| print("4 up:", file_path.parent.parent.parent.parent) |
| print("5 up:", file_path.parent.parent.parent.parent.parent) |
| print() |
|
|
| main_project = file_path.parent.parent.parent.parent.parent |
| print("Main project root:", main_project) |
| print("Should be:", r"C:\Users\LENOVO\Desktop\Roger-Ultimate") |
| print("Match:", str(main_project) == r"C:\Users\LENOVO\Desktop\Roger-Ultimate") |
|
|
| |
| src_graphs = main_project / "src" / "graphs" |
| print() |
| print("src/graphs path:", src_graphs) |
| print("Exists:", src_graphs.exists()) |
|
|
| |
| vec_graph = src_graphs / "vectorizationAgentGraph.py" |
| print("vectorizationAgentGraph.py:", vec_graph) |
| print("Exists:", vec_graph.exists()) |
|
|