Package libxyz :: Module const |
[hide private]
[frames] | no frames]

# Source Code for Module libxyz.const

     1  #-*- coding: utf8 -*
     2  #
     3  # Max E. Kuznecov ~syhpoon <syhpoon@syhpoon.name> 2008
     4  #
     5  # This file is part of XYZCommander.
     6  # XYZCommander is free software: you can redistribute it and/or modify
     7  # it under the terms of the GNU Lesser Public License as published by
     8  # the Free Software Foundation, either version 3 of the License, or
     9  # (at your option) any later version.
    10  # XYZCommander is distributed in the hope that it will be useful,
    11  # but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    13  # GNU Lesser Public License for more details.
    14  # You should have received a copy of the GNU Lesser Public License
    15  # along with XYZCommander. If not, see <http://www.gnu.org/licenses/>.
    16
    17  """
    18  Constants
    19  """
    20
    21  import sys
    22  import os
    23
    24  # Project name
    25  PROG = u"XYZCommander"
    26
    27  # Project homepage
    28  HOMEPAGE = u"xyzcmd.syhpoon.name"
    29
    30  # User directory
    31  USER_DIR = u".xyzcmd"
    32
    33  # System directory prefix
    34  SYSTEM_PREFIX = os.getenv("XYZCMD_PREFIX", sys.prefix)
    35
    36  # System directory
    37  SYSTEM_DIR = os.path.join(SYSTEM_PREFIX, "share/xyzcmd")
    38
    39  # Subdirectory with configuration files
    40  CONF_DIR = u"conf"
    41
    42  # Plugins sudbirectory
    43  PLUGINS_DIR = u"plugins"
    44
    45  # Skins sudbirectory
    46  SKINS_DIR = u"skins"
    47
    48  # Main configuration file name
    49  XYZ_CONF_FILE = u"main.xyz"
    50
    51  # Keybindings configuration file name
    52  KEYS_CONF_FILE = u"keys.xyz"
    53
    54  # Plugins configuration file name
    55  PLUGINS_CONF_FILE = u"plugins.xyz"
    56
    57  # Actions configuration file name
    58  ACTIONS_CONF_FILE = u"actions.xyz"
    59
    60  # Aliases configuration file name
    61  ALIASES_CONF_FILE = u"aliases.xyz"
    62
    63  # Internal commands configuration file name
    64  ICMD_CONF_FILE = u"icmd.xyz"
    65
    66  # VFS configuration file name
    67  VFS_CONF_FILE = u"vfs.xyz"
    68
    69  # Hooks configuration file name
    70  HOOKS_CONF_FILE = u"hooks.xyz"
    71
    72  # Default fallback skin name
    73  DEFAULT_SKIN = u"seablue"
    74
    75  # Default display driver. raw or curses
    76  DEFAULT_DISPLAY_DRIVER = u"raw"
    77