You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Marwane-20 here's one of the tasks I'd like you to tackle. The content is light so I expect you to have a look at the documentation first and ask questions later. Any question should be directed to me.
The --system-site-packages flag means this venvshares site-packages with the system/global environment.
When pip uninstall is called in that shared venv, it can remove packages from the actual environment rather than an isolated copy.
pip uninstall Removing Shared Packages
Still in add_custom_toolkit, before installing or updating a toolkit, the code calls:
Because of --system-site-packages, this uninstall step can delete files in the shared site-packages folder.
From a user’s perspective, it looks like files are “moved” or have disappeared from the venv.
Docstring incorrect
In add_script_to_menu (also used by the extension manager), the docstring says:
“The script will be moved to Personal Lib,”
but the code actually uses:
shutil.copy2(script_file, dest_script_path)
So it’s actually a copy, not a move.
The real cause is the uninstall step noted above, not a direct move operation.
Before submitting the issue
Description of the bug
Extension manager seems to delete python script files instead of copying.
Steps To Reproduce
NA
Which Operating System are you using?
Windows
Which Python version are you using?
3.11
Installed packages
NA
The text was updated successfully, but these errors were encountered: