Use proper path for unpack
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 12 Feb 2018 16:58:35 +0000 (17:58 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 12 Feb 2018 16:58:35 +0000 (17:58 +0100)
master_unpack.py

index 67b628f..cc5bc15 100644 (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)