Changeset View
Changeset View
Standalone View
Standalone View
pykolab/setup/__init__.py
Show All 24 Lines | |||||
log = pykolab.getLogger('pykolab.setup') | log = pykolab.getLogger('pykolab.setup') | ||||
conf = pykolab.getConf() | conf = pykolab.getConf() | ||||
to_execute = [] | to_execute = [] | ||||
class Setup(object): | class Setup(object): | ||||
def __init__(self): | def __init__(self): | ||||
import components | from . import components | ||||
components.__init__() | components.__init__() | ||||
arg_num = 0 | arg_num = 0 | ||||
for arg in sys.argv[1:]: | for arg in sys.argv[1:]: | ||||
arg_num += 1 | arg_num += 1 | ||||
if not arg.startswith('-') and len(sys.argv) >= arg_num: | if not arg.startswith('-') and len(sys.argv) >= arg_num: | ||||
if sys.argv[arg_num].replace('-','_') in components.components: | if sys.argv[arg_num].replace('-','_') in components.components: | ||||
to_execute.append(sys.argv[arg_num].replace('-','_')) | to_execute.append(sys.argv[arg_num].replace('-','_')) | ||||
Show All 37 Lines |