mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-02-20 15:14:26 +01:00
Renamed database_modules to database_backends.
This commit is contained in:
parent
480c800be9
commit
4d9f55941a
10
SConstruct
10
SConstruct
@ -207,7 +207,7 @@ database_list = []
|
|||||||
if env_base["databases"]:
|
if env_base["databases"]:
|
||||||
env_base.Append(CPPDEFINES=["DATABASES_ENABLED"])
|
env_base.Append(CPPDEFINES=["DATABASES_ENABLED"])
|
||||||
|
|
||||||
for x in sorted(glob.glob("database_modules/*")):
|
for x in sorted(glob.glob("database_backends/*")):
|
||||||
if not os.path.isdir(x) or not os.path.exists(x + "/detect.py"):
|
if not os.path.isdir(x) or not os.path.exists(x + "/detect.py"):
|
||||||
continue
|
continue
|
||||||
tmppath = "./" + x
|
tmppath = "./" + x
|
||||||
@ -216,8 +216,8 @@ if env_base["databases"]:
|
|||||||
import detect
|
import detect
|
||||||
|
|
||||||
if detect.is_active() and detect.can_build():
|
if detect.is_active() and detect.can_build():
|
||||||
x = x.replace("database_modules/", "") # rest of world
|
x = x.replace("database_backends/", "") # rest of world
|
||||||
x = x.replace("database_modules\\", "") # win32
|
x = x.replace("database_backends\\", "") # win32
|
||||||
database_list += [x]
|
database_list += [x]
|
||||||
|
|
||||||
sys.path.remove(tmppath)
|
sys.path.remove(tmppath)
|
||||||
@ -285,7 +285,7 @@ if env_base["databases"]:
|
|||||||
SConscript("database/SCsub")
|
SConscript("database/SCsub")
|
||||||
|
|
||||||
for d in database_list:
|
for d in database_list:
|
||||||
tmppath = "./database_modules/" + d
|
tmppath = "./database_backends/" + d
|
||||||
sys.path.insert(0, tmppath)
|
sys.path.insert(0, tmppath)
|
||||||
|
|
||||||
import detect
|
import detect
|
||||||
@ -301,7 +301,7 @@ if env_base["databases"]:
|
|||||||
|
|
||||||
Export("env_db")
|
Export("env_db")
|
||||||
|
|
||||||
SConscript("database_modules/" + d + "/SCsub")
|
SConscript("database_backends/" + d + "/SCsub")
|
||||||
|
|
||||||
sys.path.remove(tmppath)
|
sys.path.remove(tmppath)
|
||||||
sys.modules.pop("detect")
|
sys.modules.pop("detect")
|
||||||
|
Loading…
Reference in New Issue
Block a user