Index: leahi_dialin/utils/enum_updater.py =================================================================== diff -u -re9dfb2412b14f3d28824cb3e37c364b8194bb24e -r5f16af73fb80a76c6dc767661f11a8f3508770a1 --- leahi_dialin/utils/enum_updater.py (.../enum_updater.py) (revision e9dfb2412b14f3d28824cb3e37c364b8194bb24e) +++ leahi_dialin/utils/enum_updater.py (.../enum_updater.py) (revision 5f16af73fb80a76c6dc767661f11a8f3508770a1) @@ -32,13 +32,15 @@ """ Read the enums from the C++ file and then update the Python Enum definitions """ - cpp_repo_loc = path.abspath(f'{path.dirname(__file__)}/../../../leahi-dialin/leahi_common') if path.exists(cpp_repo_loc) is False: cpp_repo_loc = path.abspath(f'{path.dirname(__file__)}/../../../leahi-dialin/leahi-common') + if path.exists(cpp_repo_loc) is False: + cpp_repo_loc = path.abspath(f'{path.dirname(__file__)}/../../../leahi-common') if path.exists(cpp_repo_loc) is False: return print(f'C++ repo location not found: {cpp_repo_loc}, skipping enum updates!') + files_to_check = [] files_to_check.append(f'{cpp_repo_loc}/AlarmDefs.h') files_to_check.append(f'{cpp_repo_loc}/MsgDefs.h')