Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Jul 28, 2023
1 parent 2faf071 commit 375977b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ source venv/bin/activate
instld script.py
```

When the `import` command is executed in your script, the package will first be searched in the activated virtual environment, and only then downloaded if it is not found there.
When the "import" command is executed in your script, the package will first be searched in the activated virtual environment, and only then downloaded if it is not found there.

Secondly, you can specify the path to the virtual environment directly in the comments to a specific import using the `where` directive:
Secondly, you can specify the path to the virtual environment directly [in the comments](#special-comment-language) to a specific import using the `where` directive:

```python
import something # instld: where path/to/the/venv
```

If the path you specified does not exist when you first run the script, it will be automatically created. Libraries installed in this way are not deleted when the script is stopped.
If the path you specified does not exist when you first run the script, it will be automatically created. Libraries installed in this way are not deleted when the script is stopped, therefore, starting from the second launch, the download is no longer required.

Note that the path to the virtual environment in this case should not contain spaces.

Expand Down

0 comments on commit 375977b

Please sign in to comment.