comparison libervia/desktop/__init__.py @ 0:9754c1d6f4f4 draft default tip

Libervia Desktop initial commit
author Goffi <goffi@goffi.org>
date Fri, 12 Jul 2024 14:13:36 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:9754c1d6f4f4
1 #!/usr/bin/env python3
2
3 # Libervia Desktop-Kivy
4 # Copyright (C) 2016-2021 Jérôme Poisson (goffi@goffi.org)
5
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Affero General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Affero General Public License for more details.
15
16 # You should have received a copy of the GNU Affero General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 import os.path
20
21
22 __version__ = "0.9.0.dev0"
23
24
25 class Global:
26
27 def __init__(self):
28 self._host: "main.LiberviaDesktopApp|None" = None
29
30 @property
31 def host(self):
32 return self._host
33
34
35 G = Global()
36
37 # this import must be done after G is created
38 from .core import main
39
40
41 def run():
42 host = G._host = main.LiberviaDesktopApp()
43 host.run()