django1/django/db/backends/oracle/client.py

11 lines
269 B
Python
Raw Normal View History

from django.conf import settings
import os
def runshell():
args = ''
args += settings.DATABASE_USER
if settings.DATABASE_PASSWORD:
args += "/%s" % settings.DATABASE_PASSWORD
args += "@%s" % settings.DATABASE_NAME
os.execvp('sqlplus', args)