Skip to content

Commit

Permalink
Merge pull request #799 from RSE-Sheffield/ns-rse/virtualenvwrapper-c…
Browse files Browse the repository at this point in the history
…orections
  • Loading branch information
ns-rse authored Aug 13, 2024
2 parents 406d862 + 694d010 commit 596671e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions _posts/2024-08-11-python-virtualenvwrapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ This is straight-forward.

```bash
❱ mkvirtualenv test_env
(test_env) ❱
```

By default on creating a new virtual environment it is activated and your prompt should change to reflect this with the
Expand Down Expand Up @@ -192,7 +193,8 @@ you will have configured during [installation](installation). You can then creat
with...

```bash
mkproject new_project
❱ mkproject new_project
(new_project) ❱
```

One advantage this confers is that when you activate the project, e.g. with `workon new_project` your working directory
Expand All @@ -206,9 +208,9 @@ If you don't use `mkproject` to create a project you can set it manually after a
that reflects the directory associated with the environment.

```bash
mkproject new_project
cd ~/work/some/other/path/for/new_project
setvirtualenvproject
❱ mkvirtualenv new_project
(new_project) ❱ cd ~/work/some/other/path/for/new_project
(new_project) ❱ setvirtualenvproject
```

### Disabling Switching to Project Directories
Expand Down

0 comments on commit 596671e

Please sign in to comment.