Say I want to load the upstream output file, I use an python processor node with
upstream_item.inputResultData[0][0]
, but the returned path is begin with “__PDG_DIR__”(sometimes is the full path).
__PDG_DIR__/geo/xxx.bgeo.sc
I've tried to use expandString() but with no luck. Now I just replace the “__PDG_DIR__” with the absolute path, is there a better way to get the input result file? am I doing something wrong here? Thank you.
parent=upstream_items[0]# parent work_item with output fileimg=str(parent.inputResultData[0])# get the input file/path -> __PDG_DIR__/path/to/filef=pdg.File()# create new File obejctf.path=img# set (store) the path valueloc=f.localizePath(self.scheduler)# convert the stored path value