#!/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 . """ 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()