Use proper path for unpack

This commit is contained in:
2018-02-12 17:58:35 +01:00
parent 9861b40ef8
commit bd3ddd3bd0

View File

@@ -119,12 +119,13 @@ if platform == '':
sys.exit(1)
# extract
download_prefix = "/data/www/vhosts/builder.blender.org/webroot/download/"
if not branch or branch == 'master':
directory = 'public_html/download'
directory = download_prefix
elif branch == 'experimental-build':
directory = 'public_html/download/experimental'
directory = os.path.join(download_prefix, "experimental")
else:
directory = 'public_html/download'
directory = download_prefix
try:
filename = os.path.join(directory, packagename)