cascade 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/usr/bin/env python
  2. # -*- python-mode -*-
  3. """Cascade: The html2print GUI
  4. """
  5. # from __future__ import division, absolute_import, unicode_literals
  6. # import os
  7. import sys
  8. __copyright__ = """
  9. Copyright (C) 2007-2016 Bachir Soussi Chiadmi and contributors
  10. This program is free software; you can redistribute it and/or modify
  11. it under the terms of the A GNU General Public License version 2 as
  12. published by the Free Software Foundation.
  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 General Public License for more details.
  17. """
  18. # def setup_environment():
  19. # """Provides access to the cascade modules"""
  20. # abspath = os.path.abspath
  21. # dirname = os.path.dirname
  22. # join = os.path.join
  23. # realpath = os.path.realpath
  24. #
  25. # # Try to detect where it is run from and set prefix and the search path.
  26. # # It is assumed that the user installed Cola using the --prefix= option
  27. # python2 = sys.version_info[0] == 2
  28. # prefix = dirname(dirname(realpath(abspath(__file__))))
  29. # if python2:
  30. # cola_mod = join(prefix, str('cola'), str('__init__.py'))
  31. # install_lib = join(prefix, str('share'), str('git-cola'), str('lib'))
  32. # else:
  33. # # Look for modules in the source or install trees
  34. # cola_mod = join(prefix, 'cola', '__init__.py')
  35. # install_lib = join(prefix, 'share', 'git-cola', 'lib')
  36. #
  37. # if os.path.exists(cola_mod):
  38. # # Source tree
  39. # sys.path.insert(1, prefix)
  40. # else:
  41. # # Install tree
  42. # sys.path.insert(1, install_lib)
  43. # setup_environment()
  44. from cascade.main import main # pylint: disable=wrong-import-position
  45. if __name__ == '__main__':
  46. sys.exit(main())