__init__.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. # -*- encoding: utf8 -*-
  2. #
  3. # The Qubes OS Project, http://www.qubes-os.org
  4. #
  5. # Copyright (C) 2017 Marek Marczykowski-Górecki
  6. # <marmarek@invisiblethingslab.com>
  7. #
  8. # This program is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU Lesser General Public License as published by
  10. # the Free Software Foundation; either version 2.1 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU Lesser General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Lesser General Public License along
  19. # with this program; if not, see <http://www.gnu.org/licenses/>.
  20. '''Qubes OS management client.'''
  21. import os
  22. import qubesadmin.config
  23. import qubesadmin.base
  24. import qubesadmin.app
  25. DEFAULT = qubesadmin.base.DEFAULT
  26. if os.path.exists(qubesadmin.config.QUBESD_SOCKET):
  27. Qubes = qubesadmin.app.QubesLocal
  28. else:
  29. Qubes = qubesadmin.app.QubesRemote