Changeset View
Changeset View
Standalone View
Standalone View
build_files/buildbot/slave_update.py
| Show All 12 Lines | |||||
| # You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | ||||
| # along with this program; if not, write to the Free Software Foundation, | # along with this program; if not, write to the Free Software Foundation, | ||||
| # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| # | # | ||||
| # ##### END GPL LICENSE BLOCK ##### | # ##### END GPL LICENSE BLOCK ##### | ||||
| # <pep8 compliant> | # <pep8 compliant> | ||||
| import buildbot_utils | |||||
| import os | import os | ||||
| import runpy | |||||
| # We run from build/ directory. | if __name__ == "__main__": | ||||
| blender_dir = os.path.join('..', 'blender.git') | builder = buildbot_utils.create_builder_from_arguments() | ||||
| blender_dir = os.path.abspath(blender_dir) | os.chdir(builder.blender_dir) | ||||
| os.chdir(blender_dir) | |||||
| # Run make update which handles all libraries and submodules. | # Run make update which handles all libraries and submodules. | ||||
| make_update = os.path.join(blender_dir, "build_files", "utils", "make_update.py") | make_update = os.path.join(builder.blender_dir, "build_files", "utils", "make_update.py") | ||||
| runpy.run_path(make_update) | buildbot_utils.call(['python3', make_update]) | ||||