#!/usr/bin/env python31#2# -*- coding: utf-8 -*-3# This program is free software; you can redistribute it and/or modify4# it under the terms of the GNU General Public License as published by5# the Free Software Foundation; either version 2 of the License, or6# (at your option) any later version.7#8# This program is distributed in the hope that it will be useful,9# but WITHOUT ANY WARRANTY; without even the implied warranty of10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11# GNU General Public License for more details.12#13# You should have received a copy of the GNU General Public License14# along with this program; if not, write to the Free Software15# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,16# MA 02110-1301, USA.17#18# Author: Mauro Soria1920import sys2122from lib.core.data import options23from lib.core.options import parse_options2425if sys.version_info < (3, 9):26sys.stderr.write("Sorry, dirsearch requires Python 3.9 or higher\n")27sys.exit(1)282930def main():31options.update(parse_options())3233if options["session_file"]:34print("Loading a session file will override current options.")35if input("[c]ontinue / [q]uit: ") != "c":36exit(1)3738from lib.controller.controller import Controller3940Controller()414243if __name__ == "__main__":44try:45main()46except KeyboardInterrupt:47pass484950