The original command python line

Grant Edwards invalid at invalid.invalid
Sun Mar 4 15:34:44 CET 2012


On 2012-03-04, Chris Rebert <clp2 at rebertia.com> wrote:
> On Sat, Mar 3, 2012 at 9:38 PM, Damjan Georgievski <gdamjan at gmail.com> wrote:
>> How can I get the *really* original command line that started my python
>> interpreter?

> On Linux, you can read from:
>     /proc/<PID here>/cmdline
> to get the null-delimited "command line".

And if what you want is your own command line, you can replace <PID
here> with self:

/proc/self/cmdline

-- 
Grant



More information about the Python-list mailing list