aboutsummaryrefslogtreecommitdiff
path: root/app/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'app/tasks')
-rw-r--r--app/tasks/importtasks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py
index ed43584..ebe8e1e 100644
--- a/app/tasks/importtasks.py
+++ b/app/tasks/importtasks.py
@@ -389,7 +389,7 @@ def makeVCSRelease(id, branch):
try:
filename = randomString(10) + ".zip"
- destPath = os.path.join("app/public/uploads", filename)
+ destPath = os.path.join(app.config["UPLOAD_DIR"], filename)
with open(destPath, "wb") as fp:
repo.archive(fp, format="zip")
@@ -424,7 +424,7 @@ def importRepoScreenshot(id):
sourcePath = gitDir + "/screenshot." + ext
if os.path.isfile(sourcePath):
filename = randomString(10) + "." + ext
- destPath = os.path.join("app/public/uploads", filename)
+ destPath = os.path.join(app.config["UPLOAD_DIR"], filename)
shutil.copyfile(sourcePath, destPath)
ss = PackageScreenshot()