| changeset 38 | 77b6da96e6f1 |
| 37:8d941af65caf | 38:77b6da96e6f1 |
|---|---|
1 import os |
|
2 import sys |
|
3 |
|
4 from django.db.backends import BaseDatabaseClient |
|
5 |
|
6 class DatabaseClient(BaseDatabaseClient): |
|
7 executable_name = 'sqlite3' |
|
8 |
|
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) |
|
16 |