:: Re: [DNG] Python Virtual Environmen…
Top Page
Delete this message
Reply to this message
Author: wirelessduck
Date:  
To: Marc Shapiro
CC: dng
Subject: Re: [DNG] Python Virtual Environment strangeness


> On 11 Jun 2025, at 05:00, Marc Shapiro via Dng <dng@???> wrote:
>
> Thank you!
>
> That works.
>
> I was not familiar with the use of the shebang in that way, with the dependencies in the script. That eliminates the need to set up venv ahead of time, or having to activate and deactivate the environment. This is virtual Environment made easy!
>
> Marc


The documentation for it is on https://packaging.python.org/en/latest/specifications/inline-script-metadata/#inline-script-metadata

Originally defined in https://peps.python.org/pep-0723/

--
Tom