The original command python line

Chris Rebert clp2 at
Sun Mar 4 06:57:42 CET 2012

On Sat, Mar 3, 2012 at 9:48 PM, Chris Rebert <clp2 at> wrote:
> On Sat, Mar 3, 2012 at 9:38 PM, Damjan Georgievski <gdamjan at> 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".

After some further searching:
psutil offers `Process.cmdline` cross-platform;


More information about the Python-list mailing list