App Engine Python SDK version 1.7.4 (2)
[gae.git] / python / lib / django_1_4 / django / db / backends / sqlite3 / client.py
blob5b5b7326f223bd60f01f24ede9b630a3dd70ae3e
1 import os
2 import sys
4 from django.db.backends import BaseDatabaseClient
6 class DatabaseClient(BaseDatabaseClient):
7 executable_name = 'sqlite3'
9 def runshell(self):
10 args = [self.executable_name,
11 self.connection.settings_dict['NAME']]
12 if os.name == 'nt':
13 sys.exit(os.system(" ".join(args)))
14 else:
15 os.execvp(self.executable_name, args)