-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Auto-Activation and Projects plugins play nice together (#175)
Activating both auto-activation and projects means that the virtual environment of the project will be deactivated automatically when leaving the project directory. This is accomplished by expanding the Auto-Activation plugin to better detect projects in three steps: 1. Check if currently active virtualenv is connected to a project and save its path 2. For cases where no activation file exists in the project directory, additionally check if activation root is in project path to set new_virtualenv_name 3. Finally, additionally check if any virtualenv is active while project path doesn't match activation root. If so, auto-deactivate virtualenv
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters