mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-06 03:09:33 +01:00
Enable file fetching and updating from the Project class
This commit is contained in:
@@ -51,6 +51,9 @@ class Project:
|
||||
for file in files:
|
||||
files_with_content.append({
|
||||
"path": file,
|
||||
"content": open(file, 'r').read()
|
||||
"content": open(self.get_full_file_path(file), 'r').read()
|
||||
})
|
||||
return files_with_content
|
||||
|
||||
def get_full_file_path(self, file_name):
|
||||
return self.root_path + '/' + file_name
|
||||
|
||||
Reference in New Issue
Block a user