File: eric7config.debian

package info (click to toggle)
eric 24.8%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 104,772 kB
  • sloc: python: 332,422; javascript: 309; xml: 215; makefile: 24
file content (37 lines) | stat: -rw-r--r-- 1,292 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-
#
# This module contains the configuration of the individual eric installation
#

cfg = {
    'ericDir': r'/usr/lib/python3/dist-packages/eric7',
    'ericPixDir': r'/usr/share/eric/pixmaps',
    'ericIconDir': r'/usr/share/eric/icons',
    'ericDTDDir': r'/usr/share/eric/DTDs',
    'ericCSSDir': r'/usr/share/eric/CSSs',
    'ericStylesDir': r'/usr/share/eric/Styles',
    'ericThemesDir': r'/usr/share/eric/Themes',
    'ericDocDir': r'/usr/share/doc/eric',
    'ericExamplesDir': r'/usr/share/doc/eric/examples',
    'ericTranslationsDir': r'/usr/share/qt6/translations/',
    'ericTemplatesDir': r'/usr/share/eric/DesignerTemplates',
    'ericCodeTemplatesDir': r'/usr/share/eric/CodeTemplates',
    'ericOthersDir': r'/usr/lib/python3/dist-packages/eric7',
    'bindir': r'/usr/bin',
    'mdir': r'/usr/lib/python3/dist-packages',
    'apidir': r'/usr/share/eric/api/',}

def getConfig(name):
    '''
    Module function to get a configuration value.

    @param name name of the configuration value    @type str
    @exception AttributeError raised to indicate an invalid config entry
    '''
    try:
        return _pkg_config[name]
    except KeyError:
        pass

    raise AttributeError(
        '"{0}" is not a valid configuration value'.format(name))