Adding to want
@Steven Shull has mentioned in his answer, the code should be something like the below. This is written for Asset Object Launch Point.
from java.io import File
path = mbo.getString("DOCLINKS.DOCINFO.URLNAME")
print("The Path Value:",path)
if (path):
file = File(path)
print("The Size of the File",file.length())
print("The Size of the File in MB",file.length()/1024)
print("The Size of the File in GB",file.length()/(1024 * 1024))
------------------------------
Keshav Ravindran
Bct
------------------------------