-
Notifications
You must be signed in to change notification settings - Fork 0
/
fontypython
executable file
·41 lines (35 loc) · 1.4 KB
/
fontypython
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python
## Fonty Python Copyright (C) 2006-2017 Donn.C.Ingle
## Contact: donn.ingle@gmail.com - I hope this email lasts.
##
## This file is part of Fonty Python.
## Fonty Python is free software: you can redistribute it and/or 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.
##
## Fonty Python is distributed in the hope that it will be useful,
## 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
## along with Fonty Python. If not, see <http://www.gnu.org/licenses/>.
"""
This is the main and only executable file for fontypython.
This file is kept simple so that it parses as either
version 2 or 3 of Python. For that reason there are no imports
to fetch i18n etc.
"""
import sys, os
if sys.version_info >= (3, 0):
sys.exit(
"Sorry, fontypython requires Python 2.x, " \
"you are using Python 3.x.\n" \
"From the command line, try:\n" \
"python2 fontypython" )
if os.name != "posix":
sys.exit(
"Sorry, only Gnu/Linux is supported." )
if __name__ == "__main__":
import fontypythonmodules.segwrapfonty