File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,12 +143,7 @@ def get_changed_packages(file_list):
143143 return answer
144144
145145
146- def main ():
147- """Figure out what packages have changed."""
146+ if __name__ == '__main__' :
148147 file_list = get_changed_files ()
149148 for package in sorted (get_changed_packages (file_list )):
150- print (package )
151-
152-
153- if __name__ == '__main__' :
154- main ()
149+ print (package )
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ set -ev
1919GH_OWNER=' GoogleCloudPlatform'
2020GH_PROJECT_NAME=' google-cloud-python'
2121
22+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
23+
2224# Function to build the docs.
2325function build_docs {
2426 rm -rf docs/_build/
5355 SPHINX_RELEASE=$( git log -1 --pretty=%h) build_docs
5456fi
5557
56- # Get the current version. Assumes the PWD is the root of the git repo.
57- # This is only likely to work from within nox, because the environment
58- # must be set up .
59- CURRENT_VERSION=$( python scripts /get_version.py)
58+ # Get the current version.
59+ # This is only likely to work from within nox, because the google-cloud
60+ # package must be installed .
61+ CURRENT_VERSION=$( python ${DIR} /get_version.py)
6062
6163# Update gh-pages with the created docs.
6264cd ${GH_PAGES_DIR}
You can’t perform that action at this time.
0 commit comments