how to get args with a python drop script?

Hi,

Wiki and /sys/drop say :

arg1 dropped node name (or filename)

arg2 x position

arg3 y position

arg4 dragged index

arg5 total dragged

arg6 operator (or file extension)

arg7 dragged node parent network (or parent directory)

arg8 dropped network

Can I access those in python?
I naively tried

import sys
print(sys.argv[1:])

but it’s empty.

Thanks!
Vincent

The same args come into python scripts. Instead of accessing with $arg1, it gives you a tuple of the arguments so you can access like this :

args[0] = myArg0
args[1] = myArg1

Great, not sure why I haven’t tried this since I’ve used args in other scripts! Thanks