mirror of
https://github.com/google/nomulus.git
synced 2025-04-29 19:47:51 +02:00
Change check for root directory during rollback (#1602)
* Change check for root directory during rollback `rollback_tool` tries to infer the root of the nomulus tree by checking for a directory named "nomulus". This is potentially problematic (and, indeed, was for me) since there is no guarantee what that directory will be named. There are a number of features that characterize the root directory. Check for the presence of the `rollback_tool` wrapper script, as this is both at root level and tightly coupled to the python code, so hopefully we won't move it without testing that the script still works.
This commit is contained in:
parent
9f145d4634
commit
64f56c8686
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue