Skip to content

Commit

Permalink
Update project.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT authored Jun 14, 2024
1 parent 3814938 commit e9591f2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lettuce/plugins/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ class ProjectPlugin(MachineBasePlugin):
def __init__(self, client: SlackClient, settings: CaseInsensitiveDict, storage: PluginStorage):
super().__init__(client, settings, storage)

with open("data/projects.json") as f:
self.project_data = json.load(f)
# Construct the absolute path to repos.json
project_home = '/home/DonnieBLT/BLT-Lettuce'
data_path = os.path.join(project_home, 'data', 'projects.json')
with open(data_path) as f:
self.repo_data = json.load(f)

@command("/project")
async def project(self, command):
Expand Down

0 comments on commit e9591f2

Please sign in to comment.