mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-10 15:07:35 +01:00
Fix sass generation
This commit is contained in:
parent
d5342d7096
commit
f809cdcab0
@ -247,7 +247,7 @@ def importRepoScreenshot(id):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
filename = randomString(10) + ".png"
|
filename = randomString(10) + ".png"
|
||||||
imagePath = os.path.join("public/uploads", filename)
|
imagePath = os.path.join("app/public/uploads", filename)
|
||||||
print(imagePath)
|
print(imagePath)
|
||||||
urllib.request.urlretrieve(urlmaker.getScreenshotURL(), imagePath)
|
urllib.request.urlretrieve(urlmaker.getScreenshotURL(), imagePath)
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ def doFileUpload(file, allowedExtensions, fileTypeName):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
filename = randomString(10) + "." + ext
|
filename = randomString(10) + "." + ext
|
||||||
file.save(os.path.join("public/uploads", filename))
|
file.save(os.path.join("app/public/uploads", filename))
|
||||||
return "/uploads/" + filename
|
return "/uploads/" + filename
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ def _getDirPath(originalPath, create=False):
|
|||||||
|
|
||||||
return path
|
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
|
static_url_path = app.static_url_path
|
||||||
inputDir = _getDirPath(inputDir)
|
inputDir = _getDirPath(inputDir)
|
||||||
cacheDir = _getDirPath(cacheDir or outputPath, True)
|
cacheDir = _getDirPath(cacheDir or outputPath, True)
|
||||||
|
Loading…
Reference in New Issue
Block a user