2 # -*- coding: utf-8 -*-
5 # Copyright (C) 2011-2022 Filipe Coelho <falktx@falktx.com>
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License as
9 # published by the Free Software Foundation; either version 2 of
10 # the License, or any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # For a full copy of the GNU General Public License see the doc/GPL.txt file.
19 # ----------------------------------------------------------------------------------------------------------------------
20 # Imports (Custom Stuff)
22 from carla_app import (
26 from carla_host import (
32 from carla_shared import (
33 handleInitialCommandLineArguments,
37 # ----------------------------------------------------------------------------------------------------------------------
40 if __name__ == '__main__':
41 # ------------------------------------------------------------------------------------------------------------------
44 initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None)
46 # ------------------------------------------------------------------------------------------------------------------
49 app = CarlaApplication("Carla2", libPrefix)
51 # ------------------------------------------------------------------------------------------------------------------
52 # Set-up custom signal handling
56 # ------------------------------------------------------------------------------------------------------------------
59 host = initHost(initName, libPrefix, False, False, True)
60 loadHostSettings(host)
62 # ------------------------------------------------------------------------------------------------------------------
65 gui = HostWindow(host, True)
67 # ------------------------------------------------------------------------------------------------------------------
72 # ------------------------------------------------------------------------------------------------------------------