eric6config.py

Sat, 18 Mar 2017 11:06:48 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 18 Mar 2017 11:06:48 +0100
changeset 5627
fcffc4cd5e5c
parent 5389
9b1c800daff3
child 5628
3a1bef0560b1
permissions
-rw-r--r--

Removed two macOS related TODO markers after checks were done.

15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2 #
5627
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
3 # This module contains the configuration of the individual eric6 installation
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
4 #
15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6 _pkg_config = {
5627
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
7 'ericDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
8 'ericPixDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6/pixmaps',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
9 'ericIconDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6/icons',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
10 'ericDTDDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6/DTDs',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
11 'ericCSSDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6/CSSs',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
12 'ericStylesDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6/Styles',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
13 'ericDocDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6/Documentation',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
14 'ericExamplesDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6/Examples',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
15 'ericTranslationsDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6/i18n',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
16 'ericTemplatesDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6/DesignerTemplates',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
17 'ericCodeTemplatesDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6/CodeTemplates',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
18 'ericOthersDir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/eric6',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
19 'bindir': r'/Users/detlev/py3qt50env/bin',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
20 'mdir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
21 'apidir': r'/Users/detlev/py3qt50env/lib/python3.6/site-packages/PyQt5/Qt/qsci/api',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
22 'apis': ['zope-2.10.7.api', 'zope-2.11.2.api', 'zope-3.3.1.api', 'eric6.api', 'Ruby-1.8.7.api', 'Ruby-1.9.1.api', 'qss.api'],
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
23 'macAppBundlePath': r'/Applications',
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
24 'macAppBundleName': r'eric6.app',
15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
25 }
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
26
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
27 def getConfig(name):
5627
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
28 '''
15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
29 Module function to get a configuration value.
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
30
5627
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
31 @param name name of the configuration value (string)
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
32 '''
15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
33 try:
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
34 return _pkg_config[name]
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
35 except KeyError:
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
36 pass
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
37
5627
fcffc4cd5e5c Removed two macOS related TODO markers after checks were done.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5389
diff changeset
38 raise AttributeError('"{0}" is not a valid configuration value'.format(name))

eric ide

mercurial