Add installation script for CLAUDE.md
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Installation script for the CLAUDE.md file.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import shutil
|
||||
import pathlib
|
||||
|
||||
# Find claude directory
|
||||
if sys.platform == "win32":
|
||||
claude_dir = pathlib.Path(os.environ["USERPROFILE"]) / ".claude"
|
||||
else:
|
||||
claude_dir = pathlib.Path(os.environ["HOME"]) / ".claude"
|
||||
|
||||
print(f"Installing CLAUDE.md to {claude_dir}/CLAUDE.md")
|
||||
|
||||
os.makedirs(claude_dir, exist_ok=True)
|
||||
shutil.copy("CLAUDE.md", claude_dir / "CLAUDE.md")
|
||||
Reference in New Issue
Block a user