Skip to content

Instantly share code, notes, and snippets.

View drpafowler's full-sized avatar

Philip A Fowler drpafowler

  • Las Vegas, NV
  • 13:12 (UTC -07:00)
View GitHub Profile
import os
def create_gitignore():
"""Creates a basic .gitignore file if it does not exist."""
if not os.path.exists(".gitignore"):
with open(".gitignore", "w") as f:
f.write("""# Python-specific ignores
__pycache__/
*.pyc