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