diff options
Diffstat (limited to 'database/view-table.py')
| -rw-r--r-- | database/view-table.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/database/view-table.py b/database/view-table.py deleted file mode 100644 index 615b4081..00000000 --- a/database/view-table.py +++ /dev/null @@ -1,17 +0,0 @@ -import os -import sqlite3 -import sys - -try: - BASE_DIR = directory_name=sys.argv[1] -except: - BASE_DIR = os.path.dirname(os.path.abspath(__file__)) -db_location = os.path.join(BASE_DIR, 'opendc.db') - -conn = sqlite3.connect(db_location) -c = conn.cursor() - -rows = c.execute('SELECT * FROM ' + sys.argv[2]) - -for row in rows: - print row |
