blob: 055e9e9c6ec59a0be7b87e6be441049c0e4801f7 [file] [log] [blame] [edit]
import os
import common
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'autotest_lib.frontend.settings')
def enable_autocommit():
from django.db import connection
connection.cursor() # ensure a connection is open
connection.connection.autocommit(True)