Hello,

I use sqlAlchemy to manage db file then I would like to remove this db
file for tree directory but I get a WindowsError  [Error 32] : The
process cannot access the file because it is being used by another
process.

Please see the code below :

    dbEngine = create_engine("sqlite:///tmp"+os.sep
+ConstTest.CONFIGURATION_PATH+os.sep+"Config.db" )
    metaData = MetaData(dbEngine)
    metaData.reflect()
    try:
        shutil.rmtree("tmp"+os.sep+ConstTest.CONFIGURATION_PATH)
    except Exception, e:
        print "Issue to remove directories..."
        raise e

What can I do to remove properly the dbEngine before deleting db
file?

Sarah

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to