We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
subprocess
lessc
1 parent f673978 commit ef2431eCopy full SHA for ef2431e
config.py
@@ -1,9 +1,11 @@
1
"""App configuration."""
2
-from os import environ, path, system
+from os import environ, path
3
+import subprocess
4
5
import redis
6
from dotenv import load_dotenv
7
8
+# Read environment variables from ".env" file.
9
BASE_DIR = path.abspath(path.dirname(__file__))
10
load_dotenv(path.join(BASE_DIR, ".env"))
11
@@ -30,7 +32,7 @@ class Config:
30
32
SQLALCHEMY_ECHO = False
31
33
34
# Flask-Assets (Optional)
- LESS_BIN = system("which lessc")
35
+ LESS_BIN = subprocess.run("which lessc", shell=True, check=True)
36
ASSETS_DEBUG = False
37
LESS_RUN_IN_DEBUG = False
38
STATIC_FOLDER = "static"
0 commit comments