You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
10 years ago
|
#!/usr/bin/env python
|
||
|
"""
|
||
|
The Screenless Office
|
||
|
Copyright 2014 Brendan Howell (brendan@howell-ersatz.com)
|
||
|
|
||
|
This file is part of The Screenless Office.
|
||
|
|
||
|
The Screenless Office 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.
|
||
|
|
||
|
The Screenless Office 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 The Screenless Office. If not, see <http://www.gnu.org/licenses/>.
|
||
|
"""
|
||
|
|
||
|
|
||
|
import sys, os
|
||
|
|
||
|
# If running from inside source directory, add in-source module to path
|
||
|
file_loc = os.path.dirname(__file__)
|
||
|
file_loc = os.path.abspath(file_loc)
|
||
|
if file_loc.endswith('scripts'):
|
||
|
sys.path.insert(0, os.path.abspath(os.path.join(file_loc, '..')))
|
||
|
|
||
|
|
||
|
from screenless import officemgr
|
||
|
|
||
|
def main():
|
||
|
"""Runs the office manager daemon"""
|
||
|
mgr = officemgr.OfficeManager()
|
||
|
mgr.run()
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
main()
|
||
|
|