[1560] | 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 | ''' |
---|
[1971] | 11 | *config_example.py: Configuration options* |
---|
| 12 | ------------------------------------------- |
---|
[1560] | 13 | |
---|
[1971] | 14 | This file contains optional configuration options for GSAS-II. The variables |
---|
| 15 | in this file can be copied to file config.py, which is imported if present. |
---|
| 16 | Access these variables using :func:`GSASIIpath.GetConfigValue`, which returns |
---|
| 17 | None if the variable is not set. Note that a config.py file need not |
---|
| 18 | be present, but if in use it will typically be found with the GSAS-II source |
---|
| 19 | directory (GSASIIpath.Path2GSAS2) or a directory for local GSAS-II |
---|
| 20 | modifications (~/.G2local/ or /Documents and Settings/<User>/.G2local/). |
---|
| 21 | |
---|
| 22 | When defining new config variables for GSAS-II, define them here with a |
---|
| 23 | default value: use None or a string for strings, or use integers or real |
---|
| 24 | values. Include a doc string after each variable is defined to explain |
---|
| 25 | what it does. Use names ending in _location or _directory for items |
---|
| 26 | that will contain directory names. |
---|
| 27 | |
---|
| 28 | For example:: |
---|
| 29 | |
---|
| 30 | test_int = 0 |
---|
| 31 | test_float = 0.0 |
---|
| 32 | test_string = None (or) |
---|
| 33 | test_string = 'value' |
---|
[1560] | 34 | ''' |
---|
| 35 | |
---|
| 36 | debug = False |
---|
[1971] | 37 | '''Set to True to turn on debugging mode.This enables use of IPython on |
---|
[1560] | 38 | exceptions and on calls to :func:`GSASIIpath.IPyBreak`. Calls to |
---|
| 39 | :func:`GSASIIpath.pdbBreak` will invoke pdb at that location. |
---|
[1971] | 40 | |
---|
| 41 | If debug is False, calls to :func:`GSASIIpath.IPyBreak` and |
---|
[1560] | 42 | :func:`GSASIIpath.pdbBreak` are ignored. |
---|
| 43 | ''' |
---|
| 44 | |
---|
[2003] | 45 | Transpose = False |
---|
| 46 | 'Set to True to cause images to be Transposed when read (for code development)' |
---|
| 47 | |
---|
[1719] | 48 | Enable_logging = False |
---|
[1971] | 49 | 'Set to True to enable use of command logging (under development.)' |
---|
[1560] | 50 | |
---|
[1719] | 51 | logging_debug = False |
---|
[1971] | 52 | 'Set to True to enable debug for logging (under development.)' |
---|
[1657] | 53 | |
---|
[1971] | 54 | Help_mode = "browser" |
---|
| 55 | '''Set to "internal" to use a Python-based web viewer to display |
---|
| 56 | help documentation and tutorials. If set to the default ("browser") |
---|
| 57 | the default web browser is used. |
---|
| 58 | ''' |
---|
[1688] | 59 | |
---|
| 60 | Tutorial_location = None |
---|
| 61 | '''Change this to place tutorials by in a different spot. If None, this defaults to |
---|
[1971] | 62 | <user>/My Documents/G2tutorials (on windows) or <user>/G2tutorials. If you want to |
---|
| 63 | use a different location, this can be set here. To install into the location where |
---|
| 64 | GSAS-II is installed, use this:: |
---|
[1709] | 65 | |
---|
[1971] | 66 | Tutorial_location = GSASIIpath.path2GSAS2 |
---|
[1709] | 67 | |
---|
[1971] | 68 | As another example, to use ~/.G2tutorials do this:: |
---|
[1729] | 69 | |
---|
[1971] | 70 | Tutorial_location = os.path.expanduser('~/.G2tutorials') |
---|
[1729] | 71 | |
---|
[1971] | 72 | Note that os.path and GSASIIpath are imported inside config.py; other imports will |
---|
| 73 | require manual editing of the file. |
---|
[1688] | 74 | ''' |
---|
[1719] | 75 | |
---|
| 76 | Starting_directory=None |
---|
| 77 | '''Specifies a default location for starting GSAS-II |
---|
| 78 | ''' |
---|
| 79 | |
---|
| 80 | Import_directory=None |
---|
[1971] | 81 | '''Specifies a default location for finding exercise files used for |
---|
| 82 | Tutorials. |
---|
[1719] | 83 | ''' |
---|
[1823] | 84 | |
---|
[1971] | 85 | wxInspector = False |
---|
| 86 | '''If set to True, the wxInspector widget is displayed when |
---|
| 87 | GSAS-II is started. |
---|
[1823] | 88 | ''' |
---|