original_docstring: Function to check if the database file exists in the specified folder.
docstring: Function to check if the database file exists in the specified folder.
docstring_tokens: Function to check if the database file exists in the specified folder .
code: def check_database():
      """Function to check if the database file exists in the specified folder."""
      global DB_CONNECTION
      if path.exists('database.db'):
          print(infMsg + "Found database")
          print(sysMsg + "Connecting...")
          DB_CONNECTION = database_connect()  # return the value of the database connection
      else:
          print(errMsg + "Database not found!")
          print(warMsg + "Exiting...")
          if name == 'nt':
              deinit()
          sys.exit()
code_tokens: def check_database ( ) : global DB_CONNECTION if path . exists ( 'database.db' ) : print ( infMsg + "Found database" ) print ( sysMsg + "Connecting..." ) DB_CONNECTION = database_connect ( ) else : print ( errMsg + "Database not found!" ) print ( warMsg + "Exiting..." ) if name == 'nt' : deinit ( ) sys . exit ( )
short_docstring: Function to check if the database file exists in the specified folder.
short_docstring_tokens: Function to check if the database file exists in the specified folder .
comment: """Function to check if the database file exists in the specified folder."""$SEP$# return the value of the database connection