Renamed databases to database_modules.

This commit is contained in:
Relintai 2022-02-05 15:41:03 +01:00
parent 80d2a379fe
commit 082cf04f5d
31 changed files with 6 additions and 2 deletions

View File

@ -278,8 +278,10 @@ SConscript("web/SCsub")
SConscript("platform/SCsub") SConscript("platform/SCsub")
if env_base["databases"]: if env_base["databases"]:
#add db folder
for d in database_list: for d in database_list:
tmppath = "./database/" + d tmppath = "./database_modules/" + d
sys.path.insert(0, tmppath) sys.path.insert(0, tmppath)
import detect import detect
@ -295,11 +297,13 @@ if env_base["databases"]:
Export("env_db") Export("env_db")
SConscript("database/" + d + "/SCsub") SConscript("database_modules/" + d + "/SCsub")
sys.path.remove(tmppath) sys.path.remove(tmppath)
sys.modules.pop("detect") sys.modules.pop("detect")
# Todo actually generate db_init
for m in module_list: for m in module_list:
tmppath = m[1] tmppath = m[1]
sys.path.insert(0, tmppath) sys.path.insert(0, tmppath)