summaryrefslogtreecommitdiff
path: root/cad/src/dna/updater/dna_updater_init.py
blob: 1cc3c35ae338866bddd43bd0f8c7c5bf38cc70ea (plain)
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
# Copyright 2007-2008 Nanorex, Inc.  See LICENSE file for details. 
"""
dna_updater_init.py -- 

@author: Bruce
@version: $Id$
@copyright: 2007-2008 Nanorex, Inc.  See LICENSE file for details.
"""


from dna.updater.dna_updater_globals import initialize_globals

from dna.updater.dna_updater_prefs import initialize_prefs

from dna.updater.dna_updater_commands import initialize_commands

# ==


def initialize():
    """
    Meant to be called only from master_model_updater.py.
    Do whatever one-time initialization is needed before our
    other public functions should be called.
    [Also called after this module is reloaded.]
    """
    initialize_globals()
    initialize_prefs()
    initialize_commands()
    return

# end