How to check if idapythonrc.py is running in IDA Pro or idalib?

for now you can use os.environ.get("IDA_IS_INTERACTIVE")=="1".

1 Like