jankip20 commited on
Commit
c5fc8cf
·
verified ·
1 Parent(s): fdc5e2c

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. server/sql_env_environment.py +5 -1
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
- DB_PATH = os.environ.get("SQL_ENV_DB_PATH", "sql_env.db")
 
 
 
 
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):