Add a simple launcher script

This commit is contained in:
Florian Bruhin 2014-07-31 21:07:30 +02:00
parent c39bce79f6
commit 9edbfaecc9
2 changed files with 31 additions and 3 deletions

View File

@ -42,9 +42,8 @@ Running qutebrowser
After installing the <<requirements,requirements>>, you have these options:
* Run qutebrowser directly via `python3 -m qutebrowser`. Note executing
qutebrowser.py directly as script won't work, as Python won't recognize the
module.
* Run qutebrowser directly via `python3 qutebrowser.py` in the toplevel
directory.
* Run `python3 setup.py install` to install qutebrowser, then call
`qutebrowser`.

29
qutebrowser.py Executable file
View File

@ -0,0 +1,29 @@
#!/usr/bin/python
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2014 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser 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.
#
# qutebrowser 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 qutebrowser. If not, see <http://www.gnu.org/licenses/>.
"""Simple launcher for qutebrowser."""
import qutebrowser.qutebrowser
import sys
if __name__ == '__main__':
sys.exit(qutebrowser.qutebrowser.main())