s.py work
[systematiki.git] / systematiki.py
blob7137b628ef425fb1de30783e6e785c30697025a5
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 """
4 Systematiki program.
6 This program is a command-line-driven module loader for Systematiki. It
7 provides for running any combination of one Systematiki front-end and one
8 back-end.
9 """
11 # Copyright 2007 Felix Rabe
13 # This file is part of Systematiki.
15 # Systematiki is free software; you can redistribute it and/or modify it
16 # under the terms of the GNU Lesser General Public License as published by
17 # the Free Software Foundation; either version 3 of the License, or (at
18 # your option) any later version.
20 # Systematiki is distributed in the hope that it will be useful, but
21 # WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
23 # General Public License for more details.
25 # You should have received a copy of the GNU Lesser General Public License
26 # along with Systematiki. If not, see <http://www.gnu.org/licenses/>.
29 usage = """Usage:
30 systematiki.py --back Back.End ... --front Front.End ..."""
33 def main(argv):
34 try:
35 assert argv[1] == "--back"
36 backend_name = argv[2]
37 i = argv.index("--front", 3)
38 backend_options = argv[3:i]
39 frontend_name = argv[i+1]
40 frontend_options = argv[i+2:]
41 except:
42 print usage
43 return 1
46 if __name__ == "__main__":
47 import sys
48 sys.exit(main(sys.argv))