add exist function to cmedb
parent
25d2049f60
commit
771f002c53
13
cme/cmedb.py
13
cme/cmedb.py
|
@ -50,11 +50,6 @@ def print_table(data, title=None):
|
|||
print(table.table)
|
||||
print("")
|
||||
|
||||
|
||||
# def do_exit():
|
||||
# sys.exit(0)
|
||||
|
||||
|
||||
def write_csv(filename, headers, entries):
|
||||
"""
|
||||
Writes a CSV file with the provided parameters.
|
||||
|
@ -442,6 +437,14 @@ class CMEDBMenu(cmd.Cmd):
|
|||
"""
|
||||
print_help(help_string)
|
||||
|
||||
def do_exit(self, line):
|
||||
sys.exit()
|
||||
|
||||
def help_exit(self):
|
||||
help_string = """
|
||||
Exits
|
||||
"""
|
||||
print_help(help_string)
|
||||
|
||||
def initialize_db(logger):
|
||||
if not os.path.exists(os.path.join(WS_PATH, 'default')):
|
||||
|
|
Loading…
Reference in New Issue