My script can run under OS shell, or be embedded in another software, which still uses the same interpreter, but not under OS shell.
Is there a way to tell where my script is running in this case?
Will I know with the sys
module?
My script can run under OS shell, or be embedded in another software, which still uses the same interpreter, but not under OS shell.
Is there a way to tell where my script is running in this case?
Will I know with the sys
module?