File: client.py

package info (click to toggle)
python-django 0.95.1-1etch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 6,344 kB
  • ctags: 3,919
  • sloc: python: 24,083; makefile: 14; sql: 6
file content (10 lines) | stat: -rw-r--r-- 269 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
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)