]> git.wh0rd.org - gnudebbugs.git/blob - gnudebbugs
initial release
[gnudebbugs.git] / gnudebbugs
1 #!/usr/bin/env python3
2 # Copyright (C) 2021 Free Software Foundation, Inc.
3 #
4 # This program is free software: you can redistribute it and/or modify it under
5 # the terms of the GNU Lesser General Public License as published by the Free
6 # Software Foundation, either version 3 of the License, or at your option) any
7 # later version.
8 #
9 # This program is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 # details.
13 #
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
16
17 """Wrapper to run directly out of git."""
18
19 from pathlib import Path
20 import sys
21
22
23 # Doesn't make sense to use this script for anything else.
24 assert __name__ == "__main__"
25 assert sys.version_info >= (3, 8), "Python 3.8+ required; found " + sys.version
26
27
28 TOPDIR = Path(__file__).resolve().parent
29 sys.path.insert(0, str(TOPDIR / "src"))
30
31 from gnudebbugs import __main__
32
33 sys.exit(__main__.main())