1
0
mirror of https://github.com/google/nomulus synced 2026-01-04 20:24:22 +00:00

Fix nom_build command (#2383)

This commit is contained in:
Weimin Yu
2024-03-20 09:12:59 -04:00
committed by GitHub
parent 3fdecde6e9
commit 5c62dc78ba

View File

@@ -270,8 +270,7 @@ def generate_gradle_properties() -> str:
def get_root() -> str:
"""Returns the root of the nomulus build tree."""
cur_dir = os.getcwd()
if not os.path.exists(os.path.join(cur_dir, 'buildSrc')) or \
not os.path.exists(os.path.join(cur_dir, 'core')) or \
if not os.path.exists(os.path.join(cur_dir, 'core')) or \
not os.path.exists(os.path.join(cur_dir, 'gradle.properties')):
raise Exception('You must run this script from the root directory')
return cur_dir