mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Dont require to be in the same folder as the repo to run, v0.0.5
This commit is contained in:
@@ -11,6 +11,9 @@ class DB:
|
||||
|
||||
self.path.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
def __contains__(self, key):
|
||||
return (self.path / key).is_file()
|
||||
|
||||
def __getitem__(self, key):
|
||||
full_path = self.path / key
|
||||
|
||||
@@ -35,6 +38,6 @@ class DB:
|
||||
class DBs:
|
||||
memory: DB
|
||||
logs: DB
|
||||
identity: DB
|
||||
preprompts: DB
|
||||
input: DB
|
||||
workspace: DB
|
||||
|
||||
Reference in New Issue
Block a user