mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
More, better workaround for the mx.DateTime suckiness.
This commit is contained in:
parent
46ec7d815c
commit
aa426edd0c
@ -55,12 +55,14 @@ import callbacks
|
|||||||
import structures
|
import structures
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if 'mx' in sys.modules:
|
mxCrap = {}
|
||||||
original = sys.modules['mx']
|
for (name, module) in sys.modules.items():
|
||||||
sys.modules['mx'] = None
|
if name.startswith('mx'):
|
||||||
|
mxCrap[name] = module
|
||||||
|
sys.modules[name] = None
|
||||||
import sqlite
|
import sqlite
|
||||||
if 'mx' in sys.modules:
|
for (name, module) in mxCrap.items():
|
||||||
sys.modules['mx'] = original
|
sys.modules[name] = module
|
||||||
sqlite.have_datetime = False
|
sqlite.have_datetime = False
|
||||||
Connection = sqlite.Connection
|
Connection = sqlite.Connection
|
||||||
class MyConnection(sqlite.Connection):
|
class MyConnection(sqlite.Connection):
|
||||||
|
Loading…
Reference in New Issue
Block a user