Skip to content

Commit

Permalink
Fix extension not being added correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoCaracciolo committed Jan 2, 2025
1 parent 4a7382d commit 650ba5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ def add_extension(self, file_path : str):
Args:
file_path: the path of the file to copy
"""
os.makedirs(os.path.join(self.extension_dir, os.path.basename(file_path)), exist_ok=True)
print(self.extension_dir)
os.makedirs(os.path.join(self.extension_cache, os.path.basename(file_path)), exist_ok=True)
print(file_path)
shutil.copyfile(file_path, os.path.join(self.extension_dir, os.path.basename(file_path)))

def get_extension_by_id(self, id: str) -> NewelleExtension | None:
Expand Down

0 comments on commit 650ba5f

Please sign in to comment.