[wxpython-users] App does not close down - py2exe - work around
Werner F. Bruhin
werner.bruhin at free.fr
Wed May 28 00:41:35 PDT 2008
Just an update in case anyone else runs into this.
The problem seems to come from sqlalchemy, but I am not yet sure how to
resolved it nicely, but in the mean time I am using the following work
around.
self.engine = db.sa.create_engine(dburl, encoding='utf8', echo=False)
self.Session = db.sao.sessionmaker(autoflush=True, transactional=True)
self.Session.configure(bind=self.engine)
self.ds = self.Session()
...
self.ds.Close()
# adding the following allows the app to close down correctly
del self.ds
del self.Session
del self.engine
Mentioned it on the SA list, but had no feedback yet.
Werner
More information about the wxpython-users
mailing list