diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-12-03 13:08:36 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-12-03 13:08:36 +0300 |
commit | 7cb9b49f73f1c172e3cfc29cbf5dec74c0a10c26 (patch) | |
tree | 50950c64c18bd13fc9f51cca0ee74c47b0e30ee3 | |
parent | 981f544f5ff954beb9b9ddd53d9ff62a4a5fcc20 (diff) |
Buildbot: De-duplicate some path definitions in pack target
Should be no functional changes.
-rw-r--r-- | build_files/buildbot/slave_pack.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/build_files/buildbot/slave_pack.py b/build_files/buildbot/slave_pack.py index 6b12c139759..44ff385cf79 100644 --- a/build_files/buildbot/slave_pack.py +++ b/build_files/buildbot/slave_pack.py @@ -36,6 +36,10 @@ builder = sys.argv[1] # Never write branch if it is master. branch = sys.argv[2] if (len(sys.argv) >= 3 and sys.argv[2] != 'master') else '' +blender_dir = os.path.join('..', 'blender.git') +build_dir = os.path.join('..', 'build', builder) +install_dir = os.path.join('..', 'install', builder) + upload_filename = None # Name of the archive to be uploaded # (this is the name of archive which will appear on the # download page) @@ -65,8 +69,6 @@ if builder.find('scons') != -1: buildbot_dir = os.path.dirname(os.path.realpath(__file__)) config_dir = os.path.join(buildbot_dir, 'config') - build_dir = os.path.join('..', 'build', builder) - install_dir = os.path.join('..', 'install', builder) if builder.find('linux') != -1: scons_options += ['WITH_BF_NOBLENDER=True', 'WITH_BF_PLAYER=False', @@ -136,7 +138,6 @@ if builder.find('scons') != -1: else: # CMake if 'win' in builder: - build_dir = os.path.join('..', 'build', builder) os.chdir(build_dir) files = [f for f in os.listdir('.') if os.path.isfile(f) and f.endswith('.zip')] @@ -171,9 +172,6 @@ else: sys.exit(1) elif builder.startswith('linux_'): - blender_dir = os.path.join('..', 'blender.git') - build_dir = os.path.join('..', 'build', builder) - install_dir = os.path.join('..', 'install', builder) blender = os.path.join(install_dir, 'blender') blenderplayer = os.path.join(install_dir, 'blenderplayer') |