Skip to content

Commit

Permalink
Merge pull request #24 from dalager/chat-context-all-pyfiles
Browse files Browse the repository at this point in the history
LLM Chat context helper: Add all py files to combined file
  • Loading branch information
dalager authored Oct 14, 2024
2 parents 9a5960d + ed1443d commit d479286
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/ai_chat_context_creator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import os


def combine_python_files(file_list, output_file):
"""
Combines multiple Python files into a single file with comments indicating
Expand All @@ -21,12 +24,13 @@ def combine_python_files(file_list, output_file):

if __name__ == "__main__":
# Replace these with your actual file names

# List of Python files to combine, all .py files in the src/graphedexcel directory, not subdirectories
python_files = [
"src/graphedexcel/__main__.py",
"src/graphedexcel/graphbuilder.py",
"src/graphedexcel/graph_visualizer.py",
"src/graphedexcel/graph_summarizer.py",
"src/graphedexcel/excel_parser.py",
f"src/graphedexcel/{f}"
for f in os.listdir("src/graphedexcel")
if f.endswith(".py")
]

output_filename = "combined_project.py"
combine_python_files(python_files, output_filename)

0 comments on commit d479286

Please sign in to comment.