summaryrefslogtreecommitdiff
path: root/django/db/backends/oracle/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/backends/oracle/client.py')
-rw-r--r--django/db/backends/oracle/client.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/django/db/backends/oracle/client.py b/django/db/backends/oracle/client.py
index ac6b79041f..75be718d6f 100644
--- a/django/db/backends/oracle/client.py
+++ b/django/db/backends/oracle/client.py
@@ -1,5 +1,4 @@
-import os
-import sys
+import subprocess
from django.db.backends import BaseDatabaseClient
@@ -10,7 +9,4 @@ class DatabaseClient(BaseDatabaseClient):
def runshell(self):
conn_string = self.connection._connect_string()
args = [self.executable_name, "-L", conn_string]
- if os.name == 'nt':
- sys.exit(os.system(" ".join(args)))
- else:
- os.execvp(self.executable_name, args)
+ subprocess.call(args)