diff --git a/.config/gh/config.yml b/.config/gh/config.yml index 97cf17c..f32ba6a 100644 --- a/.config/gh/config.yml +++ b/.config/gh/config.yml @@ -13,4 +13,3 @@ aliases: http_unix_socket: # What web browser gh should use when opening URLs. If blank, will refer to environment. browser: -version: "1" diff --git a/coder-setup.py b/coder-setup.py index 3b2a770..c66a129 100644 --- a/coder-setup.py +++ b/coder-setup.py @@ -1,6 +1,5 @@ import os import pathlib -import shutil import subprocess import tempfile import urllib.request @@ -50,20 +49,14 @@ def configure_git(): def backup_pip(): pip = pathlib.Path.home() / ".config" / "pip" - pip_bak = pathlib.Path.home() / ".config" / "pip.bak" - if pip_bak.exists(): - print("Removing stray backup directory...") - shutil.rmtree(pip_bak) - if pip.exists(): - pip.rename(pip_bak) + pip.rename("pip.bak") def restore_pip(): - pip = pathlib.Path.home() / ".config" / "pip" - pip_bak = pathlib.Path.home() / ".config" / "pip.bak" - if pip_bak.exists(): - pip_bak.rename(pip) + pip = pathlib.Path.home() / ".config" / "pip.bak" + if pip.exists(): + pip.rename("pip") def configure_python():