forked from devalbo/mm_anywhere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
32 lines (23 loc) · 1.09 KB
/
settings.py
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
"""
settings.py
~~~~~~~~~~~~
This module supports configuring the MMAnywhere device server. If you have to
do much (any?) configuration outside of this file to get a basic server up and
running, something needs to be fixed.
:copyright: (c) 2012 by Albert Boehmler
:license: GNU Affero General Public License, see LICENSE for more details.
"""
import ConfigParser
parser = ConfigParser.SafeConfigParser()
parser.read("mm_anywhere.ini")
# the Micro-Manager directory to run from - where the MMCorePy.py is located
MM_DIR = parser.get("mm_anywhere", "MM_DIR")
# the Micro-Manager configuration file to use
SYSTEM_CONFIGURATION = parser.get("mm_anywhere", "SYSTEM_CONFIGURATION")
# host name to use for server (see http://flask.pocoo.org/docs/api/)
MM_ANYWHERE_HOST_NAME = parser.get("mm_anywhere", "MM_ANYWHERE_HOST_NAME")
# which port to host from
MM_ANYWHERE_PORT = int(parser.get("mm_anywhere", "MM_ANYWHERE_PORT"))
# which directory to use to store data
MM_ANYWHERE_HOST_DATA_PATH = parser.get("mm_anywhere", "MM_ANYWHERE_HOST_DATA_PATH")
DEBUG_MODE_ON = bool(parser.get("mm_anywhere", "DEBUG_MODE_ON"))