1 | # -*- coding: utf-8 -*- |
---|
2 | #config.py - Variables used to set optional configuration options |
---|
3 | ########### SVN repository information ################### |
---|
4 | # $Date: $ |
---|
5 | # $Author: toby $ |
---|
6 | # $Revision: $ |
---|
7 | # $URL: $ |
---|
8 | # $Id: $ |
---|
9 | ########### SVN repository information ################### |
---|
10 | ''' |
---|
11 | *config.py: Configuration options* |
---|
12 | ---------------------------------- |
---|
13 | |
---|
14 | This file contains optional configuration options for GSAS-II. Note that |
---|
15 | this file is not required to be present and code should be written to |
---|
16 | provide the default behavior if the file is not present or if any configuration |
---|
17 | variable is not set, but please do place a docstring here for every used |
---|
18 | config variable explaining what it does. Access these variables using |
---|
19 | :func:`GSASIIpath.GetConfigValue`. |
---|
20 | ''' |
---|
21 | |
---|
22 | debug = False |
---|
23 | '''Set to True to turn on debugging mode. This enables use of IPython on |
---|
24 | exceptions and on calls to :func:`GSASIIpath.IPyBreak`. Calls to |
---|
25 | :func:`GSASIIpath.pdbBreak` will invoke pdb at that location. |
---|
26 | If debug is false calls to :func:`GSASIIpath.IPyBreak` and |
---|
27 | :func:`GSASIIpath.pdbBreak` are ignored. |
---|
28 | ''' |
---|
29 | |
---|
30 | Enable_logging = False |
---|
31 | 'Set to True to enable use of command logging' |
---|
32 | |
---|
33 | logging_debug = False |
---|
34 | 'Set to True to enable debug for logging' |
---|
35 | |
---|
36 | Help_mode = None |
---|
37 | 'Set to "internal" to use a Python-based web viewer rather than a web browser' |
---|
38 | |
---|
39 | Tutorial_location = None |
---|
40 | '''Change this to place tutorials by in a different spot. If None, this defaults to |
---|
41 | ~/My Documents/G2tutorials (on windows) or ~/G2tutorials. If you want to use a different |
---|
42 | location (such as to use the GSASII installation directory), this can be set here. |
---|
43 | As an example, to always use ~/G2tutorials do this:: |
---|
44 | |
---|
45 | import os.path |
---|
46 | Tutorial_location = os.path.join(os.path.expanduser('~'),'G2tutorials') |
---|
47 | |
---|
48 | To install into the location where GSAS-II is installed, use this:: |
---|
49 | |
---|
50 | import GSASIIpath |
---|
51 | Tutorial_location = GSASIIpath.path2GSAS2 |
---|
52 | |
---|
53 | ''' |
---|
54 | |
---|
55 | Starting_directory=None |
---|
56 | '''Specifies a default location for starting GSAS-II |
---|
57 | ''' |
---|
58 | |
---|
59 | Import_directory=None |
---|
60 | '''Specifies a default location for starting GSAS-II |
---|
61 | ''' |
---|
62 | |
---|
63 | wxInspector = None |
---|
64 | '''If set to True, the wxInspector widget is displayed |
---|
65 | ''' |
---|