Пример #1
0
def python():
    """Install python config files."""
    ipythonhome = Path.home() / ".ipython"
    profilehome = ipythonhome / "profile_default"
    startuppath = profilehome / "startup"
    if not any([ipythonhome.exists(), profilehome.exists(), startuppath.exists()]):
        startuppath.mkdir(parents=True)

    relative_paths = [
        ".pdbrc.py",
        ".config/flake8",
        ".ipython/profile_default/ipython_config.py",
        ".ipython/profile_default/startup/common.py",
    ]
    create_symlinks_robust(relative_paths, from_dir=wax_dotfile_dir, to_dir=Path.Home())