__init__.py 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. # ============================================================================
  2. # This file is part of Pwman3.
  3. #
  4. # Pwman3 is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License, version 2
  6. # as published by the Free Software Foundation;
  7. #
  8. # Pwman3 is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with Pwman3; if not, write to the Free Software
  15. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. # ============================================================================
  17. # Copyright (C) 2012 Oz Nahum <nahumoz@gmail.com>
  18. # ============================================================================
  19. def get_ui_platform(platform): # pragma: no cover
  20. if 'darwin' in platform:
  21. from .mac import PwmanCliMacNew as PwmanCli
  22. OSX = True
  23. elif 'win' in platform:
  24. from .win import PwmanCliWinNew as PwmanCli
  25. OSX = False
  26. else:
  27. from .cli import PwmanCli
  28. OSX = False
  29. return PwmanCli, OSX