aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/tasks/importtasks.py2
-rw-r--r--app/utils.py2
-rw-r--r--app/views/sass.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py
index ced48a9..352736e 100644
--- a/app/tasks/importtasks.py
+++ b/app/tasks/importtasks.py
@@ -247,7 +247,7 @@ def importRepoScreenshot(id):
try:
filename = randomString(10) + ".png"
- imagePath = os.path.join("public/uploads", filename)
+ imagePath = os.path.join("app/public/uploads", filename)
print(imagePath)
urllib.request.urlretrieve(urlmaker.getScreenshotURL(), imagePath)
diff --git a/app/utils.py b/app/utils.py
index 6be889e..e42c3cc 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -47,7 +47,7 @@ def doFileUpload(file, allowedExtensions, fileTypeName):
return None
filename = randomString(10) + "." + ext
- file.save(os.path.join("public/uploads", filename))
+ file.save(os.path.join("app/public/uploads", filename))
return "/uploads/" + filename
diff --git a/app/views/sass.py b/app/views/sass.py
index 2ae3896..825f494 100644
--- a/app/views/sass.py
+++ b/app/views/sass.py
@@ -45,7 +45,7 @@ def _getDirPath(originalPath, create=False):
return path
-def sass(app, inputDir='scss', outputPath='static', force=False, cacheDir=None):
+def sass(app, inputDir='scss', outputPath='static', force=False, cacheDir="public/static"):
static_url_path = app.static_url_path
inputDir = _getDirPath(inputDir)
cacheDir = _getDirPath(cacheDir or outputPath, True)