rawdog 2.23.
[rawdog/.git] / rawdog
1 #!/usr/bin/env python
2 # rawdog: RSS aggregator without delusions of grandeur.
3 # Copyright 2003, 2004, 2005, 2006, 2016 Adam Sampson <ats@offog.org>
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
17
18 from rawdoglib.rawdog import main
19
20 import os
21 import sys
22
23 def launch():
24         sys.exit(main(sys.argv[1:]))
25
26 if __name__ == "__main__":
27         if os.getenv("RAWDOG_PROFILE") is not None:
28                 import profile
29                 profile.run("launch()")
30         else:
31                 launch()