view python/delete-object-tables.py @ 251:4978b5baf8f1

Win32 version for traffic intelligence. Use the README-Win32.txt to know how to fetch the dependencies. A batch file is included to automate most of the process
author Jeep-Tour@Jeep-Tour-PC
date Mon, 23 Jul 2012 12:27:50 -0400
parents 584613399513
children
line wrap: on
line source

#! /usr/bin/env python

import sys,getopt

import utils
import storage

options, args = getopt.getopt(sys.argv[1:], 'h',['help'])
options = dict(options)

if '--help' in options.keys() or '-h' in options.keys() or len(args) == 0:
    print('Usage: {0} --help|-h <database-filename.sqlite>'.format(sys.argv[0]))
    sys.exit()

storage.removeObjectsFromSqlite(args[0])