The original command python line
gdamjan at gmail.com
Sun Mar 4 07:20:28 CET 2012
>>> How can I get the *really* original command line that started my python
>> 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;
> see http://code.google.com/p/psutil/wiki/Documentation
Indeed, changing for
args = psutil.Process(os.getpid()).cmdline
in the above example does solve the problem, at least in Linux.
> Sidenote: Consensus generally seems to be that relative imports are a
I'm using explicit relative imports, I thought they were the new thing?
More information about the Python-list