blob: 7875c7d745519d678b7d55295e05fecd58bf9a44 (
plain) (
blame)
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
|
''' NOTES:
I'm not sure how I want the build system to work yet.
Maybe I want:
Controller -> CONFIG_FILES as Task -> Monitor each Task
* How should I reliably weigh tasks? This part may get tedious if the weights
are in the configuration files.
* I could use the old 000filename.conf style...
* weight= in a config
'''
import os
from configparser import SafeConfigParser, ExtendedInterpolation
class Controller(object):
def __init__(self):
pass
class Task(object):
def __init__(self, filename):
self.config = SafeConfigParser(interpolation=ExtendedInterpolation(), allow_no_value=True)
def check_config(self):
pass
def run(self):
pass
|