Révision 9003c07e
Ajouté par Jérôme Schneider il y a plus de 9 ans
scripts/mandaye-admin.py | ||
---|---|---|
11 | 11 |
|
12 | 12 |
from optparse import OptionParser |
13 | 13 |
|
14 |
from mandaye import config, global_config
|
|
14 |
from mandaye import config |
|
15 | 15 |
from mandaye.log import logger |
16 | 16 |
|
17 | 17 |
def get_cmd_options(): |
... | ... | |
39 | 39 |
project_name) |
40 | 40 |
modue_example = os.path.join(project_name, |
41 | 41 |
"example.module") |
42 |
skel = global_config.skel_root
|
|
42 |
skel = config.skel_root |
|
43 | 43 |
logger.info("Creating project %s ..." % project_name) |
44 | 44 |
if os.path.exists(project_name): |
45 | 45 |
print "%s folder already exist" % project_name |
Formats disponibles : Unified diff
Centralized config.py into mandaye core
All the configuration is now in ini files.
You could have 3 levels of ini files : * default mandaye core ini file * default mandaye project ini file * optional ini file loading with --config option
Closes #5495