repo / catppucin.py
ysb123's picture
Update catppucin.py
d65517f
raw
history blame
528 Bytes
import subprocess
def git_clone(repo_url, dest_dir):
command = ["git", "clone", repo_url, dest_dir]
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = process.communicate()
if process.returncode != 0:
print(f"Error cloning repository: {stderr.decode()}")
else:
print("Theme cloned successfully!")
# Example usage
repo_url = "https://github.com/catppuccin/stable-diffusion-webui.git"
dest_dir = "./catppuccin"
git_clone(repo_url, dest_dir)