Code Repositories xandikos / 4283e94
Add xandikos.__main__. Jelmer Vernooń≥ 1 year, 9 months ago
3 changed file(s) with 37 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2525 sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
2626
2727
28 from xandikos.web import main
28 from xandikos.__main__ import main
2929
30 main(sys.argv)
30 sys.exit(main(sys.argv))
2424 version_string = '.'.join(map(str, __version__))
2525
2626 import defusedxml.ElementTree # noqa: This does some monkey-patching on-load
27
28 if __name__ == '__main__':
29 import sys
30 from xandikos.cmdline import main
31 main(sys.argv)
0 # Xandikos
1 # Copyright (C) 2016-2018 Jelmer Vernooń≥ <jelmer@jelmer.uk>, et al.
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; version 3
6 # of the License or (at your option) any later version of
7 # the License.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 # MA 02110-1301, USA.
18
19 """Xandikos command-line handling."""
20
21
22 def main(argv):
23 from .web import main
24 return main(argv)
25
26
27 if __name__ == '__main__':
28 import sys
29 main(sys.argv)