Authenticator/twofactorauth.in

42 lines
1.3 KiB
Text
Raw Normal View History

2016-05-25 22:18:10 +02:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
2016-05-27 04:03:42 +02:00
Copyright © 2016 Bilal Elmoussaoui <bil.elmoussaoui@gmail.com>
2016-05-25 22:18:10 +02:00
2016-05-27 04:03:42 +02:00
This file is part of TwoFactorAuth.
2016-05-25 22:18:10 +02:00
2016-05-27 04:03:42 +02:00
TwoFactorAuth is free software: you can redistribute it and/or
2016-05-25 22:18:10 +02:00
modify it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
2016-05-27 04:03:42 +02:00
TwoFactorAuth is distributed in the hope that it will be useful,
2016-05-25 22:18:10 +02:00
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
2016-05-27 04:03:42 +02:00
along with TwoFactorAuth. If not, see <http://www.gnu.org/licenses/>.
2016-05-25 22:18:10 +02:00
"""
import sys
2016-05-27 03:51:58 +02:00
sys.path.insert(1, '@pyexecdir@')
2016-05-25 22:18:10 +02:00
sys.path.insert(1, '@pythondir@')
2016-05-27 14:31:04 +02:00
from TwoFactorAuth import application
2016-05-29 03:55:37 +02:00
import locale
import gettext
2016-05-25 22:18:10 +02:00
if __name__ == "__main__":
2016-05-29 03:55:37 +02:00
locale.bindtextdomain('TwoFactorAuth', "@localedir@")
locale.textdomain('TwoFactorAuth')
gettext.bindtextdomain('TwoFactorAuth', "@localedir@")
gettext.textdomain('TwoFactorAuth')
2016-05-27 03:51:58 +02:00
app = application.Application(package="@PACKAGE@",
2016-05-25 22:18:10 +02:00
version="@VERSION@",
pkgdatadir="@pkgdatadir@")
2016-05-27 03:51:58 +02:00
exit_status = app.run(sys.argv)
sys.exit(exit_status)