@@ -15,8 +15,11 @@ def verify_fix():
1515 print ("=" * 70 )
1616 print ()
1717
18- # Path to the fixed file
19- tcolor_file = "/Volumes/Backup Plus/root/bindings/pyroot/pythonizations/python/ROOT/_pythonization/_tcolor.py"
18+ # Path to the fixed file - relative to script location
19+ script_dir = os .path .dirname (os .path .abspath (__file__ ))
20+ repo_root = os .path .abspath (os .path .join (script_dir , '..' , '..' , '..' ))
21+ tcolor_file = os .path .join (repo_root , "bindings" , "pyroot" , "pythonizations" ,
22+ "python" , "ROOT" , "_pythonization" , "_tcolor.py" )
2023
2124 if not os .path .exists (tcolor_file ):
2225 print ("ERROR: Cannot find _tcolor.py file" )
@@ -108,12 +111,15 @@ def verify_tests():
108111 print ("=" * 70 )
109112 print ()
110113
114+ script_dir = os .path .dirname (os .path .abspath (__file__ ))
115+ repo_root = os .path .abspath (os .path .join (script_dir , '..' , '..' , '..' ))
116+ jupyroot_dir = os .path .join (repo_root , "roottest" , "python" , "JupyROOT" )
111117 test_files = {
112- "Jupyter Notebook Test" : "/Volumes/Backup Plus/root/roottest/python/JupyROOT/ tcolor_definedcolors.ipynb" ,
113- "Python Unit Test" : "/Volumes/Backup Plus/root/roottest/python/JupyROOT/ test_tcolor_metadata.py" ,
114- "CMakeLists.txt" : "/Volumes/Backup Plus/root/roottest/python/JupyROOT/ CMakeLists.txt" ,
115- "Fix Summary" : "/Volumes/Backup Plus/root/roottest/python/JupyROOT/ ISSUE_20018_FIX_SUMMARY.md" ,
116- "Test README" : "/Volumes/Backup Plus/root/roottest/python/JupyROOT/ README_TCOLOR_TEST.md"
118+ "Jupyter Notebook Test" : os . path . join ( jupyroot_dir , " tcolor_definedcolors.ipynb") ,
119+ "Python Unit Test" : os . path . join ( jupyroot_dir , " test_tcolor_metadata.py") ,
120+ "CMakeLists.txt" : os . path . join ( jupyroot_dir , " CMakeLists.txt") ,
121+ "Fix Summary" : os . path . join ( jupyroot_dir , " ISSUE_20018_FIX_SUMMARY.md") ,
122+ "Test README" : os . path . join ( jupyroot_dir , " README_TCOLOR_TEST.md")
117123 }
118124
119125 all_exist = True
0 commit comments