mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix sass generation
This commit is contained in:
parent
d5342d7096
commit
f809cdcab0
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user