Upload folder using huggingface_hub
Browse files
server/sql_env_environment.py
CHANGED
|
@@ -27,7 +27,11 @@ except ImportError:
|
|
| 27 |
|
| 28 |
# Path to the SQLite database file.
|
| 29 |
# Place your .db file here, or it will be created automatically.
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
class SqlEnvironment(Environment):
|
|
|
|
| 27 |
|
| 28 |
# Path to the SQLite database file.
|
| 29 |
# Place your .db file here, or it will be created automatically.
|
| 30 |
+
# NEW
|
| 31 |
+
DB_PATH = os.environ.get(
|
| 32 |
+
"SQL_ENV_DB_PATH",
|
| 33 |
+
os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "sql_env.db")
|
| 34 |
+
)
|
| 35 |
|
| 36 |
|
| 37 |
class SqlEnvironment(Environment):
|