More cleanups

1. Make bootstrapping/env setting be based off a shell script
2. Reworking password lookup and config lookup
This commit is contained in:
Joshua Harlow
2012-08-21 13:03:01 -07:00
parent a7acb03e4e
commit 0481104ae6
13 changed files with 498 additions and 538 deletions

View File

@@ -17,17 +17,10 @@
import os
import sys
# RC files generated / used
RC_FN_TEMPL = "%s.rc"
# Where the configs and templates should be at...
BIN_DIR = os.path.abspath(os.path.dirname(sys.argv[0]))
CONFIG_DIR = os.path.join(BIN_DIR, "conf")
CONFIG_DIR = 'conf'
COMPONENT_CONF_DIR = os.path.join(CONFIG_DIR, "components")
DISTRO_DIR = os.path.join(CONFIG_DIR, "distros")
PERSONA_DIR = os.path.join(CONFIG_DIR, "personas")
TEMPLATE_DIR = os.path.join(CONFIG_DIR, "templates")
def gen_rc_filename(root_name):
return RC_FN_TEMPL % (root_name)