def compose(env):
"""Compose the configuration."""
offset = _get_utils(env)
rsync = ["rsync",
"-aczv",
USER_FOLDER,
os.path.join(offset, USER_FOLDER),
"--delete-after",
_get_exclude("*.pyc"),
_get_exclude("README.md"),
_get_exclude("__init__.py"),
_get_exclude("__config__.py")]
call(rsync, "rsync user definitions")
here = os.getcwd()
composition = ["python2.7",
"config_compose.py",
"--output", os.path.join(here, FILE_NAME)]
call(composition, "compose configuration", working_dir=offset)
评论列表
文章目录