diff --git a/release/rollback/common.py b/release/rollback/common.py index 73da29b46..bfec10c9d 100644 --- a/release/rollback/common.py +++ b/release/rollback/common.py @@ -108,7 +108,7 @@ def get_nomulus_root() -> str: The absolute path to the Nomulus root directory. """ for folder in pathlib.Path(__file__).parents: - if folder.name != 'nomulus': + if not folder.joinpath('rollback_tool').exists(): continue if not folder.joinpath('settings.gradle').exists(): continue