22 lines
489 B
Python
Executable File
22 lines
489 B
Python
Executable File
#!/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")
|