Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def find_gradle_root_project():
- # Handle both directory structure types: ones with Projects/Android and ones without
- paths = ['.', '../../', '../../../']
- for path in paths:
- # settings.gradle files indicate a Gradle app (or 'root project')
- # whereas build.gradle files indicate a Gradle project/module that
- # typically the app will pull in via settings.gradle.
- if os.path.exists(os.path.join(path, 'settings.gradle')):
- return os.path.join(path, 'build.gradle')
- return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement