def package(self, url, name=None, lock_version=True): name = name or url.split('/')[-1] base = '~/.initxyz/emacs-packages' mkdir(expanduser(base)) path = base + '/' + name git_repo(path, url, lock_version=lock_version) self.append_path(path)
def run(self, ns): mkdir(xyzdir) symlink_force(ns.configs_dir, xyzdir + '/configs') init_path = xyzdir + '/configs/init.py' mkdir(xyzdir + '/var') if not exists(init_path): copy(xyzcodedir + '/example_init.py', init_path)