Aug-28-2019, 12:09 PM
(This post was last modified: Aug-28-2019, 12:09 PM by Gribouillis.)
Skaperen Wrote:what i am wanting is to determine whether the script was run directly or if the name or path to the engine was used.I don't think you can do that from inside the script. On the other hand you can get the pid of the current process and probably use a module such as psutil to find the command line associated to this process if any.
import psutil print(psutil.Process().cmdline())