Major Projectwide Restructuring
[rarslave2.git] / RarslaveGlobals.py
1 #!/usr/bin/env python
2 # vim: set ts=4 sts=4 sw=4 textwidth=92:
3
4 import RarslaveLogger
5 import RarslaveConfig
6
7 # I know that this sucks majorly, but I kinda need it to keep things
8 # sane in the code. I don't /want/ to have to keep passing the config,
9 # options, and logger around all the time.
10
11 # This will hold the configuration from the configuration file. This should
12 # only be used to hold statically, non-runtime alterable content.
13 config  = RarslaveConfig.RarslaveConfig ()
14
15 # This will hold the configuration from the command-line options. You should
16 # probably be using this to get values in most cases. It takes its defaults
17 # from the configuration file.
18 options = None
19
20 # This will hold the logger that will be able to log everything in all the
21 # classes in rarslave.
22 logger  = RarslaveLogger.RarslaveLogger ()
23